📄 gamemain.java
字号:
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class gameMain extends MIDlet {
Display display;
DrawGame dg; //创建GameDraws的对象
protected void startApp() throws MIDletStateChangeException
{
display=Display.getDisplay(this);
dg=new DrawGame(this,display);
display.setCurrent(dg);
}
protected void pauseApp() {
// TODO 自动生成方法存根
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO 自动生成方法存根
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -