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

We have already established a nodding acquaintance with the widgets. It is now time to get to know them more intimately starting with Component—the root. As long as a developer is working with just the widgets that come with the library, the Component class does not have to be accessed directly. It is only when we want to create our own components that we have to extend the Component class, and override the methods that would define the look-and-feel and the behavior of the custom component. However, even when we use only the built-in widgets, it is useful to have an understanding of what the Component class does, as it is the foundation for all widgets in the LWUIT library.

The only constructor of Component class is protected ...

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