/* * To change this template, choose Tools | Templates * and open the template in the editor. */ import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * @author Matt */ public class Hi extends MIDlet { public void startApp() { Displayable current; Helloscreen helloscreen; String text; current = Display.getDisplay(this).getCurrent(); if (current == null) { text = "Hi!\n"; text += " This is my first program running on a cell phone!!\n It's very exciting!!!\n\n-Dadeo"; helloscreen = new Helloscreen (this, text); Display.getDisplay (this).setCurrent (helloscreen); } } public void pauseApp() { } public void destroyApp(boolean unconditional) { } // A convenience method for exiting void exitRequested() { destroyApp (false); notifyDestroyed(); } }