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

📄 main.java

📁 JRemoteControl is a simple Java&#8482 driven bluetooth remote control.It allows you to initiate virt
💻 JAVA
字号:
/* * JRemCntl - Copyright (C) 2007 Filippo Di Vattimo <fildiv@gmail.com> * See COPYING */package fildiv.jremcntl.client;import javax.microedition.midlet.MIDlet;import javax.microedition.midlet.MIDletStateChangeException;import fildiv.jremcntl.client.core.AppContext;import fildiv.jremcntl.client.ui.LogsScreen;import fildiv.jremcntl.client.ui.MainScreen;public class Main extends MIDlet {    private boolean initialized = false;    private MainScreen mainScreen;    private AppContext appCtx;        private boolean init() {    	        if (initialized)            return true;                appCtx = new AppContext(this);//        appCtx = new DebugAppContext(this);                LogsScreen logsScreen = new LogsScreen(appCtx);        appCtx.setLogger(logsScreen);                        mainScreen = new MainScreen(appCtx, this);                logsScreen.setBackScreen(mainScreen);        mainScreen.setLogger(logsScreen);                initialized = true;        return true;    }    	public void destroyApp() {        try {			destroyApp(true);		} catch (MIDletStateChangeException e) {			// Ignored		}    }        public void destroyApp(boolean arg0) throws MIDletStateChangeException {        cleanUp();        notifyDestroyed();    }    protected void pauseApp() {    }    protected void startApp() throws MIDletStateChangeException {    	if (init())            mainScreen.show();    }    private void cleanUp() {    }}

⌨️ 快捷键说明

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