?? maze.java
字號:
//import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.*;
public class Maze extends MIDlet {
public static int isTime=0;//1表示計時,0表示不計時
public static int num=1;//記錄這是第幾關??
public Display dis;
public FirstMenu menu=new FirstMenu(this);
public Maze() {
// TODO 自動生成構造函數存根??
Alert welcomeScreen=new Alert("手機迷宮", "歡迎您試玩", null, AlertType.ALARM);
welcomeScreen.setTimeout(2000);
dis=Display.getDisplay(this);
//dis.setCurrent(menu);
dis.setCurrent(welcomeScreen, menu);
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO 自動生成構造函數存根????
}
protected void pauseApp() {
//TODO 自動生成構造函數存根????
}
protected void startApp() throws MIDletStateChangeException {
// TODO 自動生成構造函數存根???
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -