O'Reilly logo

LWUIT 1.1 for Java ME Developers by Biswajit Sarkar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Arranging Widgets with Layout Managers

Arranging components on a screen can be a tricky business. For instance, any manual arrangement that depends on a particular display dimension to look good is very likely to disappoint on a device with a different screen size. LWUIT provides a number of classes that automate the process of laying out components on a container. These layout managers produce screen arrangements that are device independent to a considerable extent. However, each class has its own characteristics and needs to be used while keeping its capabilities in mind.

The root class for the layout classes is Layout, and it has six subclasses that perform component arrangement, each in accordance with its operating algorithm. The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required