Chapter Summary
This chapter introduced you to the full set of MIDP UI component classes. There are two general categories of UI components: those under the Displayable hierarchy and those under the Item hierarchy.
The Screen class derives directly from Displayable and defines the main abstraction in the MIDP. MIDP applications are fundamentally based on screens.
A Form, a kind of Screen, is the only kind of screen that can aggregate other components. A Form can contain String objects, images defined by the Image class, and objects whose types are subclasses of the Item class.
The typical MIDP application must be able to navigate between screens. Therefore, screens must be able to pass a reference to a valid instance of the screen object that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access