?? girlmidlet.java
字號:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class GirlMIDlet extends MIDlet
implements CommandListener {
private Display display;
private GCanvas canvas;//聲明SCanvas對象
public void startApp() {
if (display==null)
display = Display.getDisplay(this);
if (canvas == null){
canvas = new GCanvas();
Command exitCommand =
new Command("退出", Command.EXIT, 0);
canvas.addCommand(exitCommand);
canvas.setCommandListener(this);
}
display.setCurrent(canvas);
}
public void pauseApp() {}
public void destroyApp(boolean unconditional) {}
public void commandAction(Command c, Displayable d) {
if (c.getCommandType() == Command.EXIT) {
destroyApp(true);
notifyDestroyed();
return;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -