Introducing a Lightweight UI Toolkit: Bringing Desktop Development into Java ME, Page 7
Please, feel free to open weather.res file in your Resource Editor and play with different combinations of colors, fonts, and images. Maybe some of you wonder why I have included all the images inside the resource file instead of downloading them (the RSS feed has some image URLs). Basically, I did this for two reasons: to show you how to include images, and secondly, some mobile operators control how much bandwidth is used by customers, and I wanted to consume the minimum possible.
You have learned the basics of LWUIT: using containers and forms and placing components on them following a layout. You also started to empower your application with themes, fonts, and images. In the next article, I will show you some advanced concepts, such as Lists, dialogs, tabs, and animations.
Download the Code
You can download the code that accompanies this article here.
-  LWUIT home: https://lwuit.dev.java.net/
-  Yahoo Weather: http://weather.yahoo.com/
-  Yahoo RSS Weather description: http://developer.yahoo.com/weather/
-  Nice weather icon images (for a KDE application): http://liquidweather.net/icons.php
-  What is Java 2 Micro Edition? by Eric Giguère: http://www.developer.com/ws/j2me/article.php/1378921
-  KXML home: http://kxml.sourceforge.net/
-  First of a series of articles teaching JavaME: http://www.developer.com/java/other/article.php/3747896
-  Composite pattern: http://en.wikipedia.org/wiki/Composite_pattern
About the Author
Ibon Urrutia is a Spanish IT Engineer, with wide experience in JavaME applications targeted to be used in many devices. Nowadays, he is working for MDTEC http://www.mdtec.net, participating in a complete JavaME framework with advanced user interface functionalities, TagsMETM, http://www.tagsme.com. He also is member of Netbeans Dream Team, http://wiki.netbeans.org/NetBeansDreamTeam.
Page 7 of 7