⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 navigate2midlet.java

📁 java移动通信程序设计
💻 JAVA
字号:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class Navigate2MIDlet extends MIDlet implements CommandListener {

    private Command exitCommand;
    private Display display;
    Displayable nd;

    Image image = null;

    public Navigate2MIDlet() {
        try {
            image= Image.createImage("/Jornada720.png");
        }
        catch(Exception e) {
        }

	   Display display = Display.getDisplay(this);

       nd = new Navigate2Canvas(image);

       exitCommand = new Command("离开",Command.EXIT,1);
  
       nd.addCommand(exitCommand);

       nd.setCommandListener(this);
       display.setCurrent(nd);
    }

    public void startApp(){
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }
    public void commandAction(Command c, Displayable s) {
      notifyDestroyed();    
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -