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

📄 xcalc.java

📁 用JAVA做的一个手机上的计算器
💻 JAVA
字号:
package xcalc;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;


/**
 *
 * @author  Administrator
 * @version
 */
public class XCalc extends MIDlet {
	public static Display	display;
	public static Renderer renderer;
	public static Options options;
	public static History history;
		
	public XCalc() {
		super();	
		display = Display.getDisplay(this);			
		renderer = new Renderer(this);
		options = new Options();
		history = new History();
		options.loadPreferences();		
		history.loadHistory();
	}
	
	public Display getDisplay(){
		return display;
	}

	protected void startApp() throws MIDletStateChangeException {		
		display.setCurrent(renderer);		
	}

	protected void pauseApp() {
	}

	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
	}
}

⌨️ 快捷键说明

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