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