?? rgbimagedemo.java
字號:
package rgbimagedemo;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class RGBImageDemo
extends MIDlet
implements CommandListener {
private Display mDisplay;
private SnowCrash mSnowCrash;
public RGBImageDemo() {
mSnowCrash = new SnowCrash();
Command exitCommand = new Command("Exit", Command.EXIT, 0);
mSnowCrash.addCommand(exitCommand);
mSnowCrash.setCommandListener(this);
mDisplay = Display.getDisplay(this);
}
public void startApp() {
mDisplay.setCurrent(mSnowCrash);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {}
// CommandListener method
public void commandAction(Command c, Displayable s) {
if (c.getCommandType() == Command.EXIT) {
mSnowCrash.stop();
notifyDestroyed();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -