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 12. Painters

All LWUIT components have a multi-layered structure. The first layer erases a visually obsolete widget, and the subsequent layers then paint the background followed by the constituent parts of the new version. As a matter of fact, the background too can be made up of several layers, and that is not all. After a form has been fully rendered, we can place a layer above it that can be drawn upon regardless of any changes or animations that may be taking place in the form below. Such a layer—known as a GlassPane —is usually transparent or translucent so that the form under it remains visible.

The classes that work as a background painter or a glass pane must implement the Painter interface. In case more than one background painter ...

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