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