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

📄 doggymidlet.java

📁 用Java/C#开发手机程序及移动应用光盘代码。J2ME核心类及MIDlet类;基于Java开发MIDlet程序;图形处理及低级事件处理;多线程编程;即时消息传送;I/O及网络编程;数据库编程;多媒体
💻 JAVA
字号:
import javax.microedition.midlet.*;import javax.microedition.lcdui.*;public class DoggyMIDlet extends MIDlet implements CommandListener {    Command cmdExit;    public DoggyMIDlet() {        cmdExit = new Command("Exit", Command.EXIT, 1);    }    protected void startApp() throws MIDletStateChangeException {        Doggy d;        d = new Doggy();        d.addCommand(cmdExit);        d.setCommandListener(this);                Display.getDisplay(this).setCurrent(d);    }        protected void pauseApp() {    }        protected void destroyApp(boolean unconditional)		throws MIDletStateChangeException {    }        public void commandAction(Command c, Displayable d) {        if (c == cmdExit) {            try {                destroyApp(false);            } catch (Exception e) {}            notifyDestroyed();        }    }}

⌨️ 快捷键说明

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