📄 doggymidlet.java
字号:
import javax.microedition.midlet.*;import javax.microedition.lcdui.*;public class DoggyMIDlet extends MIDlet implements CommandListener { Command cmdExit; public DoggyMIDlet() { cmdExit = new Command("Exit", Command.EXIT, 1); } protected void startApp() throws MIDletStateChangeException { Doggy d; d = new Doggy(); d.addCommand(cmdExit); d.setCommandListener(this); Display.getDisplay(this).setCurrent(d); } protected void pauseApp() { } protected void destroyApp(boolean unconditional) throws MIDletStateChangeException { } public void commandAction(Command c, Displayable d) { if (c == cmdExit) { try { destroyApp(false); } catch (Exception e) {} notifyDestroyed(); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -