mainmidlet.java
来自「j2me 小的子弹精灵,简单介绍sprite 的一个例子」· Java 代码 · 共 36 行
JAVA
36 行
package spritebullet;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class MainMIDlet extends MIDlet {
private static MainMIDlet instance;
ShowBullet d= new ShowBullet(40,100,100);
/** Constructor */
public MainMIDlet() {
instance = this;
}
/** Main method */
public void startApp() {
Display.getDisplay(this).setCurrent(d);
}
/** Handle pausing the MIDlet */
public void pauseApp() {
}
/** Handle destroying the MIDlet */
public void destroyApp(boolean unconditional) {
}
/** Quit the MIDlet */
public static void quitApp() {
instance.destroyApp(true);
instance.notifyDestroyed();
instance = null;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?