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

Summary

Painters are essentially layers on which we can paint. Such a layer can be placed under the visual elements of a component forming its background. It can also be placed above a form as a normally transparent pane through which the form can be seen. Anything that is rendered on such a pane remains unaffected by changes (such as animations) in the form below.

Painters are convenient tools, for example, when we want custom patterns to be used as backgrounds. This is especially true when we need to support different combinations of such patterns in a range of components. Such variability can be easily programmed by arranging the constituents in layer sets that can be formed into PainterChains. A chain can then be selected for use, depending ...

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