import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class MIDlet1 extends MIDlet {
private Command cmd;
private javax.microedition.lcdui.Display dis;
private javax.microedition.lcdui.Form frm;
public MIDlet1() {
// TODO Auto-generated constructor stub
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
protected void startApp() throws MIDletStateChangeException {
cmd=new Command("请选择",Command.SCREEN,1);
dis=Display.getDisplay(this);
frm=new Form("第一个程序");
frm.addCommand(cmd);
cmd=new Command("第一个",Command.SCREEN,1);
frm.addCommand(cmd);
cmd=new Command("第二个",Command.SCREEN,1);
frm.addCommand(cmd);
dis.setCurrent(frm);
// TODO Auto-generated method stub
}
}
张生工作室