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

📄 mid.java

📁 j2me手机游戏摩迦历险记源代码
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -