mid.java

来自「j2me手机游戏摩迦历险记源代码」· Java 代码 · 共 46 行

JAVA
46
字号
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;


public class MID extends MIDlet 
{
	public Main main = null;
	public Display dis;
	BillBoard billBoard;
	public MID()
	{
		billBoard = new BillBoard();
	}
	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
		// TODO Auto-generated method stub

	}

	protected void pauseApp() {
		// TODO Auto-generated method stub

	}

	protected void startApp() throws MIDletStateChangeException 
	{
		if(main == null)
			main = new Main(this);
		dis = Display.getDisplay(this);
		dis.setCurrent(main);

	}
	public void exitMID() {
		try {
			destroyApp(false);
			System.gc();
			dis = null;
		} catch (MIDletStateChangeException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		notifyDestroyed();
	}

}

⌨️ 快捷键说明

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