spacer
LWUIT Tutorial

Introduction

by Jonathan Knudsen
April 30, 2008


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:

  • Hello, LWUIT!
  • Working With Forms
  • Filling Forms with Components
  • Using Layouts
  • Using Transitions
  • Event Handling
  • Styles and Themes

This tutorial is not a comprehensive guide to LWUIT. For more information, read the Developer's Guide and browse the API documentation.

spacer

Contact About Sun News & Events Employment Site Map Privacy Terms of Use Trademarks --> Copyright © 2008 Sun Microsystems, Inc.
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.