phonemidlet.java
来自「能添加删除通讯录」· Java 代码 · 共 46 行
JAVA
46 行
package AdressList;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class PhoneMIDlet extends MIDlet {
public Display dis;
private WelcomeCanvas wc = new WelcomeCanvas(this);
private PhoneList pl = new PhoneList(this);
private AddForm af = new AddForm(this);
protected void startApp() throws MIDletStateChangeException {
dis = Display.getDisplay(this);
this.changeInterface("WelcomeCanvas");
}
public void changeInterface(String interfaceName){
if(interfaceName.equals("WelcomeCanvas")){
dis.setCurrent(wc);
}
else if(interfaceName.equals("PhoneList")){
dis.setCurrent(pl);
pl.deleteAll();
pl.loadPhones();//更新
}
else if(interfaceName.equals("AddForm")){
dis.setCurrent(af);
}
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?