?? commandtest1.java
字號:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class CommandTest1 extends MIDlet {
private Display display;
private Form s1;
public CommandTest1() {
display=Display.getDisplay(this);
s1 = new Form("Screen with Exit");
Command exitCommand = new Command("Exit",Command.EXIT,1);
s1.addCommand(exitCommand);
}
public void startApp() throws MIDletStateChangeException {
display.setCurrent(s1);
}
/**
* Pause the MIDlet
*/
public void pauseApp() {
}
/**
* Called by the framework before the application is unloaded
*/
public void destroyApp(boolean unconditional) {
display=null;
s1=null;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -