?? midlet1.java
字號:
package customitem;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class MIDlet1 extends MIDlet {
private static MIDlet1 instance;
private Form mainForm = new Form("My Custom Item");
private Display display;
/** Constructor */
public MIDlet1() {
instance = this;
display = Display.getDisplay(this);
}
/** Main method */
public void startApp() {
mainForm.append(new Table("My Table", Display.getDisplay(this)));
display.setCurrent(mainForm);
}
/** Handle pausing the MIDlet */
public void pauseApp() {
}
/** Handle destroying the MIDlet */
public void destroyApp(boolean unconditional) {
}
/** Quit the MIDlet */
public static void quitApp() {
instance.destroyApp(true);
instance.notifyDestroyed();
instance = null;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -