主题:各位帮忙看下
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class Medlet2 extends MIDlet {
private Form frm = new Form("请选择相应操作");
private Display dis;
private Command cmddel = new Command("删除该号码",Command.SCREEN,1);
private Command cmdedit = new Command("编辑该号码",Command.SCREEN,1);
private Command cmdexit = new Command("退出菜单",Command.SCREEN,1);
private Command cmdback = new Command("返回上一叶",Command.BACK,1);
/*public Medlet2() {
// TODO Auto-generated constructor stub
}*/
protected void startApp() throws MIDletStateChangeException {
dis = Display.getDisplay(this);
dis.setCurrent(frm);
frm.addcommand(cmddel);
frm.addcommand(cmdedit);
frm.addcommand(cmdexit);
frm.addcommand(cmdback);
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub
}
}
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class Medlet2 extends MIDlet {
private Form frm = new Form("请选择相应操作");
private Display dis;
private Command cmddel = new Command("删除该号码",Command.SCREEN,1);
private Command cmdedit = new Command("编辑该号码",Command.SCREEN,1);
private Command cmdexit = new Command("退出菜单",Command.SCREEN,1);
private Command cmdback = new Command("返回上一叶",Command.BACK,1);
/*public Medlet2() {
// TODO Auto-generated constructor stub
}*/
protected void startApp() throws MIDletStateChangeException {
dis = Display.getDisplay(this);
dis.setCurrent(frm);
frm.addcommand(cmddel);
frm.addcommand(cmdedit);
frm.addcommand(cmdexit);
frm.addcommand(cmdback);
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub
}
}