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

The form

A form is a top level container with a title bar and a menu bar. The contents of the form are placed between the two bars. Reproduced below for reference, we see the screenshot of a form. It shows the place where the title of the form appears (TitleBar) and the place for commands (MenuBar) where the Exit command has been placed. Also shown is the space for the Content Pane, which actually holds the entire set of components that are added to the form.

The form

Creating a form

The Form class has two constructors:

  • public Form()—creates a form without any title. If you use this constructor, then you can later set the title. However, if no title is specified ...

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