main.java
来自「基于j2me实现的HelloWorld」· Java 代码 · 共 34 行
JAVA
34 行
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class Main extends MIDlet {
static Main instance;
public Main() {
// TODO Auto-generated constructor stub
instance = this;
dis = Display.getDisplay(instance);
}
Display dis;
HelloWorld helloword;
protected void destroyApp(boolean unconditional) {
// TODO Auto-generated method stub
if (instance != null)
instance.notifyDestroyed();
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
protected void startApp() throws MIDletStateChangeException {
// TODO Auto-generated method stub
if (helloword == null)
helloword = new HelloWorld(this);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?