📄 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 + -