gamemidlet.java~3~
来自「我用j2me编写的索爱手机有游戏程序屏幕(128*160)」· JAVA~3~ 代码 · 共 44 行
JAVA~3~
44 行
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class GameMIDlet extends MIDlet {
private static GameMIDlet instance;
private Game displayable = new Game();
Image logo = null;
/** Constructor */
public GameMIDlet() {
instance = this;
}
/** Main method */
public void startApp() {
try {
logo = Image.createImage("/logo.png");
}catch (IOException e) {}
Alert splashScreen = new Alert(null, "郎锐2004年作\n版权所有(c)\n2004--2005", logo, AlertType.INFO);
splashScreen.setTimeout(4000); // 延迟4秒
Display.getDisplay(this).setCurrent(displayable);
}
/** 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 + -
显示快捷键?