manyballs.java~1~
来自「J2ME编写的手机上的一个小游戏---Balls」· JAVA~1~ 代码 · 共 36 行
JAVA~1~
36 行
package balls;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class ManyBalls extends MIDlet {
private static ManyBalls instance;
private Displayable1 displayable = new Displayable1();
/** Constructor */
public ManyBalls() {
instance = this;
}
/** Main method */
public void startApp() {
Display.getDisplay(this).setCurrent(displayable);
}
/** Handle pausing the MIDlet */
public void pauseApp() {
}
/** Handle destroying the MIDlet */
public void destroyApp(boolean unconditional) {
}
/** Quit the MIDlet */
public static void quitApp() {
instance.destroyApp(true);
instance.notifyDestroyed();
instance = null;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?