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 {
	}

}

你可能感兴趣的:(框架)