Fork us on GitHub

SQL Explorer, Global Toolbar, Location & Docs

Refining the code further
SQL Explorer, Global Toolbar, Location & Docs

SQL Explorer, Global Toolbar, Location & Docs

I was working on documenting the SQLite support in Codename One, you can see some of that work both in the db package and in the developer guide. As a demo for SQL I decided to just create a tool that allows you to type arbitrary SQL to execute it on the device and see the results in a Table…​

Beside being a cool example this can be a hugely powerful debugging tool to one of the more painful API’s to debug on the device. You can integrate this as a hidden feature into your application and use it to debug odd "on device" issues by querying the DB!

Toolbars All Around

The Toolbar API is the way forward but up until now we didn’t include the option to set the Toolbar globally so for every Form you had to do the:

Toolbar tb = new Toolbar();

You can now set the Toolbar to be on by default on all forms so form.getToolbar() will return a valid Toolbar that you can use right away. There are two ways to enable it, in code using:


Or using the theme constant:


Debugging Location Calls

Piotr contributed another pull request that refines the behavior of the simulator when working with the location API. This highlights a relatively accessible path to code contribution thru the Java SE code which should be easier.

Check out my post on contributing code to the Codename One project here

Documentation Progress

Our manual is over 650 pages. We just finished a rewrite of the IO section which is HUGE!

Similarly to the galleries we made for components and layouts we created sections for the database, XPath processing/parsing language & general IO (storage, filesystem, parsing, networking etc.).

Check out these sections and let us know what you think.

Share this Post:

Posted by Shai Almog

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 & github.