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

📄 getinfosform.java~1~

📁 基于J2ME的手机程序。可以查看手机当前的一些信息。如手机是彩屏还是黑白
💻 JAVA~1~
字号:
package GetInfo;

import javax.microedition.lcdui.*;

/**
 * <p>Title: GetInfo</p>
 *
 * <p>Description: Get infomation</p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: NCU</p>
 *
 * @author Peng P.
 * @version 1.0
 */
public class GetInfoForm extends Form implements CommandListener {
    public GetInfoForm() {
        super("手机详细信息");
        try {
            jbInit();
        }
        catch(Exception e) {
            e.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        setCommandListener(this);
        addCommand(new Command("Exit", Command.EXIT, 1));
    }

    public void commandAction(Command command, Displayable displayable) {
        if (command.getCommandType() == Command.EXIT) {
            GetInfoMIDlet.quitApp();
        }
    }

}

⌨️ 快捷键说明

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