当前位置: 代码迷 >> J2ME >> J2me程序根本框架
  详细解决方案

J2me程序根本框架

热度:1320   发布时间:2016-04-17 21:26:11.0
J2me程序基本框架
package com.mhxy;import javax.microedition.lcdui.Display;import javax.microedition.midlet.MIDlet;import javax.microedition.midlet.MIDletStateChangeException;import com.mhxy.changjing.Wellcome;public class AppStart extends MIDlet {		private Display dis;	private Wellcome well;	public AppStart() {		dis=Display.getDisplay(this);//显示系统		well=new Wellcome(dis);		dis.setCurrent(well);//加载画布	}	public void destroyApp(boolean arg0) throws MIDletStateChangeException {	}	protected void pauseApp() {	}	protected void startApp() throws MIDletStateChangeException {	}}