Until this weeks release push notification was registered using Display.registerPush(Hashtable, boolean) the thing is that both of these arguments to that method are no longer used or not the best way to implement registration. So we deprecated that method and introduced a new version of the method Display.registerPush().
Since push fallback hasn’t been supported since we migrated to the new API it’s going away isn’t a big deal but up until recently the Hashtable argument was used to pass the GCM push ID.
This is pretty old code from before our migration to Java 5 so it used Hashtable, we since migrated all the way to Java 8
Steve recently introduced a cool new split pane component to Codename One which is a long time request from many users:
This is mostly self explanatory but only "mostly". We have 5 arguments the first 3 make sense:
Components to split
The last 3 arguments seem weird but they also make sense once you understand them, they are:
The minimum position of the split - 1/4 of available space
The default position of the split - middle of the screen
The maximum position of the split - 3/4 of available space
The units don’t have to be percentages they can be mm (millimeters) or px (pixels).
You might have noticed the video above was shot in the simulator, one of the tell tale signs is the mouse cursor.
Once this is enabled you can set the cursor over a specific region using cmp.setCursor() which accepts one of the cursor constants defined in Component.
We have a lot of plans for improving the desktop/web support in Codename One moving forward but these specific features are a part of a specific set of changes going into the new GUI builder.
I don’t think this is the time to share too much but Steve has been working on some GUI builder changes that we are all pretty excited about. We want these changes to be great on launch and not something we constantly tune so they might take some time. I hope they will land in 3.7 but I’d rather we launch them after if we can’t get them to the place where they should be…
Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked
with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter &