Post Image

Completion, iOS 7 Update And The 20M Mark

Exciting news this week, Chen FINALLY did what we procrastinated on for so long and wrote an auto-complete text field! This is really easy to incorporate into your code, just replace your usage of TextField with AutoCompleteTextField and define the data that the auto complete should work from. There is a default implementation that accepts a Strin...

Read More
Post Image

Folk Dancing And General Updates

Who would have thought Hungarian folk dance would be so entertaining! Can't. stop. watching.... Its been a busy week mostly spent on updating the build server code so its iOS 7 ready, during that time we also managed to get some other things done... These are some of the highlights: You may recall the ImageViewer class that I mentioned a while ba...

Read More

Codename One Article In SDJ

Post Image

Remember the Poker app we teased a couple of weeks ago? Now you can read all about it in SDJ, the entire article is in the downloadable PDF (please buy the magazine!). We'll try to post the full source code into SVN and get into more details about it here. If you have any questions/comments related to the article feel free to ask in the comments ...

Read More
Post Image

It's In The Bag

GridBag that is. So GridBagLayout is one of the most notorious of the layout managers in Java in fact for many developers it symbolizes the failure of the layout manager concept. That is the main reason why we never added it. Last week I had a very interesting conversation with a very prominent Swing developer and he asked me whether we had gridba...

Read More

Teamwork (and other things)

Post Image

While Java rocks for teamwork because of its strict and streamlined heuristics, our resource files are less ideal. However we are changing that in the next update to Codename One! The reason we chose to put everything into a binary resource file should be obvious: small size, portability. These are two critical features we had in mind when we desig...

Read More

Use The Source

Post Image

Update: minor correction to the build process about the build.xml issue in the Codename One project. To me the biggest advantage in Codename One over pretty much any other mobile solution is that its realistically open source. Realistically means that even an average developer can dig into 90% of the Codename One source code, change it and contrib...

Read More

In A Pinch

Post Image

Codename One has supported multi-touch and effectively pinch to zoom events from the very first release. However, it wasn't intuitive to write code that would handle pinch to zoom. We just committed new pinch callback events to component which effectively allows you to zoom in/out with gestures. Effectively if you are interested in handling pinch ...

Read More
Post Image

You Can Bet On It

Recently the guys from Software Developer Journal contacted us about writing a mobile gaming article, since quite a few Codename One developers use it to write games we decided to accept the offer and I wrote an article titled: "Writing casual games In Java for mobile devices". In this article we create a simple poker game mockup that is fully func...

Read More

Pushing It

Post Image

We got a request from one of our pro-subscribers to support push notification on Blackberry devices. Normally we just implement the feature pro-developers ask for. However, in this case we were cautious... Building anything for/on top of a Blackberry device is often an exercise in futility. The gist of it though is that we were able to get it working des...

Read More
Post Image

Spanning, Caching, Native Fonts and more

When you have so many features as Codename One has things sometimes slip, a feature gets lost and even the guys who created it forget it was there. There are two such stories in this post one dates back to the very start of Codename One.... But first lets start with the other one. A month or so ago we added a component called SpanButton which has b...

Read More