📄 flowcontrol.java
字号:
package GameTest;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class FlowControl extends MIDlet {
boolean init = false;
public FlowControl() {
Navigator.display = Display.getDisplay(this);
Navigator.midlet = this;
FirstGame.midlet = this;
}
public void startApp() {
Navigator.current = Navigator.MAIN_SCREEN;
Navigator.show(null);
if (init) {
Alert splash = new Alert("Welcome cartoon");
splash.setType(AlertType.CONFIRMATION);
splash.setTimeout(500);
Navigator.display.setCurrent(splash);
init = false;
}
}
public void pauseApp() {
}
public void destroyApp(boolean con) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -