import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.midlet.MIDlet;
public class Exec extends MIDlet {
private Display display;
Form f = new Form("HelloTest");
// 构造函数
public Exec() {
display = Display.getDisplay(this);
System.out.println("Constructor");
}
public void startApp() {
System.out.println("startApp is called.");
display.setCurrent(f);
}
public void pauseApp() {
System.out.println("pauseApp is called.");
}
public void destroyApp(boolean unconditional) {
System.out.println("destroyApp is called.");
}
}
[此贴子已经被作者于2010-12-12 18:21:35编辑过]