📄 playermidlet.java
字号:
/**
游戏客户端MIDlet类
Download by http://www.codefans.net
**/
package game.multiplayer;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class PlayerMIDlet
extends MIDlet {
private static PlayerMIDlet instance;
private PlayerScreen displayable = new PlayerScreen(this);
/** 构造器 */
public PlayerMIDlet() {
instance = this;
}
//MIDlet主方法
public void startApp() {
Display.getDisplay(this).setCurrent(displayable);
}
public void pauseApp() {}
public void destroyApp(boolean unconditional) {}
//退出MIDle
public static void quitApp() {
instance.destroyApp(true);
instance.notifyDestroyed();
instance = null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -