FileDocCategorySizeDatePackage
HelloMidlet.javaAPI DocExample849Sat Jan 05 11:47:24 GMT 2002None

HelloMidlet

public class HelloMidlet extends MIDlet

Fields Summary
private Display
display
TextBox
box
Constructors Summary
public HelloMidlet()


      
    
Methods Summary
public voiddestroyApp(boolean unconditional)
Destroy must cleanup everything not handled by the garbage collector. In this case there is nothing to cleanup.

    
public voidpauseApp()
Pause is a no-op since there are no background activities or record stores that need to be closed.

    
public voidstartApp()

        display = Display.getDisplay(this);
        box = new TextBox("Simple Example", "Hello World", 20, 0);
        display.setCurrent(box);