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 Display class

This is the class that manages the painting and event handling with LWUITImplementation as a partner. Display is used to show forms and also to start the EDT. Like LWUITImplementation, there is just one instance of Display for an LWUIT application. However, unlike LWUITImplementation, it can be accessed, and used by us.

Before any form is shown, we must register the current MIDlet by calling the static method Display.init(MIDlet midlet). The init method instantiates LWUITImplementation, as well as a new Thread—the EDT and starts it off. It also invokes the init(MIDlet midlet) method of LWUITImplementation to get the underlying instance of the javax.microedition.lcdui.Display class. Obviously, nothing much can be done with 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