?? simplegame.java
字號(hào):
package simplegage;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class SimpleGame extends MIDlet implements CommandListener{
private Display display = null;
public void startApp() {
if(display == null){
display = Display.getDisplay(this);
MainCanvas canvas = new MainCanvas();
canvas.addCommand(new Command("exit",Command.EXIT,1));
canvas.setCommandListener(this);
display.setCurrent(canvas);
}
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command command, Displayable displayable) {
if(command.getCommandType() == Command.EXIT){
destroyApp(false);
notifyDestroyed();
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -