📄 flowcontorl.java
字号:
package lckz;
import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Image;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class FlowContorl extends MIDlet {
boolean init=true;
public FlowContorl() {
// TODO 自动生成构造函数存根
Navigator.display=Display.getDisplay(this);
Navigator.midlet=this;
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO 自动生成方法存根
}
protected void pauseApp() {
// TODO 自动生成方法存根
}
protected void startApp() throws MIDletStateChangeException {
// TODO 自动生成方法存根
Navigator.current=Navigator.MAIN_SCREEN;
Navigator.show(null);
Image img=null;
if(init)
{
try
{
img=Image.createImage("/duke.png");
}catch(Exception exp)
{
}
Alert splash=new Alert("片头动画");
splash .setType(AlertType.CONFIRMATION);
splash.setString("系统正在处理中");
splash.setImage(img);
splash.setTimeout(5000);
Navigator.display.setCurrent(splash);
init=false;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -