?? midletmain.java
字號:
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class MIDletMain extends MIDlet implements Runnable{
private static Display dis;
private static CanvasMain cas;
private static Thread t;
public MIDletMain() {
dis = Display.getDisplay(this);
cas = new CanvasMain();
dis.setCurrent(cas);
}
protected void startApp() throws MIDletStateChangeException {
t = new Thread(this);
t.start();
}
protected void pauseApp() {
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
CanvasMain.exit();
notifyDestroyed();
}
public final void run() {
cas.run();
try {
destroyApp(false);
} catch (MIDletStateChangeException e) {
e.printStackTrace();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -