?? midletlifecycle3.java
字號(hào):
import javax.microedition.midlet.*;
public class MIDletLifeCycle3 extends MIDlet implements Runnable{
Thread t;
public MIDletLifeCycle3(){
t = new Thread(this);
System.out.println("MIDletLifeCycle is initialized!");
}
public void startApp(){
System.out.println("startApp() is called!");
t.start();
pauseApp();
notifyPaused();
}
public void run(){
while(true){
try{
Thread.sleep(1000);
System.out.println("Do something!");
}catch(Exception ex){}
}
}
public void pauseApp(){
System.out.println("pauseApp() is called!");
}
public void destroyApp(boolean unconditional){
System.out.println("destroyApp() is called!");
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -