Slide 3.8: Line-by-line anatomy of HelloMIDlet.java
  Slide 3.10: Line-by-line anatomy of HelloMIDlet.java (cont.)
  Home


Line-by-line Anatomy of HelloMIDlet.java (Cont.)


import javax.microedition.midlet.*;
The package javax.microedition.midlet defines MIDP applications and the interactions between the application and the environment in which the application runs.

Class hierarchy
public class HelloMIDlet extends MIDlet implements CommandListener {
private Display display;
The class javax.microedition.lcdui.Display represents the manager of the display and input devices of the system. It includes methods for retrieving properties of the device and for requesting that objects to be displayed.

private TextBox tbxMain;
The class javax.microedition.lcdui.TextBox is a Screen that allows the user to enter and edit text.