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.

The javax.microedition.midlet hierarchy

Figure 16-1. The javax.microedition.midlet hierarchy

Get J2ME in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.