?? mymidelt.java
字號:
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.*;
public class MyMidelt extends MIDlet {
Display display;
GameCanvas gameCanvas;
public MyMidelt() {
display=Display.getDisplay(this);
gameCanvas=new GameCanvas();
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO 自動生成方法存根
}
protected void pauseApp() {
// TODO 自動生成方法存根
}
protected void startApp() throws MIDletStateChangeException {
// TODO 自動生成方法存根
display.setCurrent(gameCanvas);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -