by Jonathan Knudsen
The LightWeight User Interface Toolkit (LWUIT) is a versatile and compact API for creating attractive application user interfaces for mobile devices.
LWUIT provides sophisticated Swing-like capabilities without the tremendous power and complexity of Swing. Designed from the ground up as an efficient mobile user interface toolkit, LWUIT provides many useful Swing-like features.
LWUIT offers a basic set of components, flexible layouts, style and theming, animated screen transitions, and a simple and useful event handling mechanism. The toolkit has been tested and debugged on a variety of mobile devices.
This tutorial is designed to get you up and running with LWUIT in as little time as possible. It assumes that you are using NetBeans and the NetBeans Mobility Pack. The examples and screen shots in the tutorial were run on the Sprint Wireless Toolkit, but you can use the Sun Java Wireless Toolkit emulator that comes packaged with the NetBeans Mobility Pack. I used the Sprint Wireless Toolkit because LWUIT runs faster on it.
The tutorial contains the following sections:
This tutorial is not a comprehensive guide to LWUIT. For more information, read the Developer's Guide and browse the API documentation.