📄 main.java~1~
字号:
package WealthGod129;
import java.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class main extends MIDlet{
public static main instance;
private StartChoice startChoice;
public GameScreen gamescanvas;
private Alert alert;
private Display display;
public main() {
instance = this;
display = Display.getDisplay(this);
}
/**
* startApp
*/
protected void startApp() {
startChoice=new StartChoice();
try {
Image image = Image.createImage("/res/alert.png");
alert=new Alert("机顶盒游戏——金鼠财神");
alert.setImage(image);
}
catch (IOException ex1) { }
Display.getDisplay(this).setCurrent(alert,startChoice);
}
/**
* pauseApp
*/
protected void pauseApp() {
}
/**
* destroyApp
*
* @param boolean0 boolean
*/
protected void destroyApp(boolean boolean0) {
}
/** Quit the MIDlet */
public static void quitApp() {
instance.destroyApp(true);
instance.notifyDestroyed();
instance = null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -