📄 goodbyeword.java
字号:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class Goodbyeword extends MIDlet implements CommandListener{
private Display display;
private TextBox textbox;
private Command quitcommand;
public void startApp(){
display=Display.getDisplay(this);
quitcommand=new Command("quit",Command.SCREEN,1);
textbox=new TextBox("Goodbyeword","my two midlet",40,0);
textbox.addCommand(quitcommand);
textbox.setCommandListener(this);
display.setCurrent(textbox);
}
public void pauseApp(){
}
public void destroyApp(boolean unconditional){
}
public void commandAction(Command choice,Displayable displayable){
if(choice==quitcommand){
destroyApp(false);
notifyDestroyed();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -