Name
Package javax.microedition.midlet
Synopsis
This package contains only two classes: MIDlet
and MIDletStateChangeException. The MIDlet
class is the base class for all MIDlets, which are the
Mobile Information Device Profile’s equivalent of Java applets.
Like applets, MIDlets have a small number of methods that must be overridden
so that MIDlets can respond to state changes. These state changes are
caused by interactions with the user or with other MIDlets. Under certain
circumstances, a MIDlet can report a problem during a state change by
throwing a MIDletStateChangeException, which may or may
not stop the state change from being completed.
Figure 16-1 shows the class hierarchy of this package. See Chapter 3, “The Mobile Information Device Profile and MIDlets,” for more details about MIDlets.

Figure 16-1. The javax.microedition.midlet hierarchy
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