设置几个菜单选项,在监听里判断不行吗?
this.setCommandListener(this);
this.addCommand(new Command("Exit", Command.EXIT, 1));
this.addCommand(new Command("开始", Command.OK, 1));
.
.
.
public void commandAction(Command command, Displayable displayable) {
if (command.getCommandType() == Command.EXIT) {
MIDlet1.quitApp();
}else if(command.getCommandType() == Command.OK){
Display.getDisplay(主类对象).setCurrent(要显示类对象);
}
}