📄 testmidlet.java
字号:
package net.frog_parrot.test;import javax.microedition.lcdui.*;import javax.microedition.midlet.MIDlet;/** * A simple 3D example. */public class TestMIDlet extends MIDlet implements CommandListener { private Command myExitCommand = new Command("Exit", Command.EXIT, 1); private SimpleCanvas myCanvas = new SimpleCanvas(); /** * Initialize the Displayables. */ public void startApp() { myCanvas.addCommand(myExitCommand); myCanvas.setCommandListener(this); Display.getDisplay(this).setCurrent(myCanvas); myCanvas.repaint(); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } /** * Change the display in response to a command action. */ public void commandAction(Command command, Displayable screen) { if(command == myExitCommand) { destroyApp(true); notifyDestroyed(); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -