Java Reference
In-Depth Information
Display.getDisplay(this).setCurrent(d);
}
public void pauseApp() { }
public void destroyApp(boolean unconditional) { }
}
This MIDlet creates a TextBox , which is a kind of Displayable , and adds a single command
to it. The listener is created as an anonymous inner subclass. In Sun's toolkit, this MIDlet
appears as shown in Figure 5-3.
Figure 5-3. A simple MIDlet with a single command, Exit
Search WWH ::




Custom Search