?? arcmidlet.java
字號:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class ArcMIDlet
extends MIDlet implements CommandListener{
private Command exitCommand;
Display display;
// ArcMIDlet(){
// display = Display.getDisplay(this);
// }
public void startApp() {
Display display = Display.getDisplay(this);
Displayable d = new ArcCanvas();
exitCommand = new Command("離開", Command.EXIT, 1);
d.addCommand(exitCommand);
d.setCommandListener(this);
display.setCurrent(d);
}
public void pauseApp() {}
public void destroyApp(boolean unconditional) {}
public void commandAction(Command c, Displayable s) {
notifyDestroyed();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -