📄 journeytothewest.java
字号:
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
/**
* 文件名: JourneyToTheWest.java <br>
* 作者: 汪霞 <br>
* 创建日期: 2005-12-1 <br>
* 文件功能: <br>
* 版本:1.0 <br>
* 编译环境:CLDC1.0, MIDP1.0 <br>
* 实现环境:NOKIA60 <br>
* 注释: <br>
* 修改者姓名: <br>
* 版权声明:Copyright (c) 2000 GameFactory .All rights reserved. <br>
*/
public class JourneyToTheWest extends MIDlet {
/**
*
*/
Display display;
WestGameCanvas westGameCanvas;
public JourneyToTheWest() {
display = Display.getDisplay(this);
westGameCanvas = new WestGameCanvas(this);
}
/*
* (非 Javadoc)
*
* @see javax.microedition.midlet.MIDlet#startApp()
*/
protected void startApp() throws MIDletStateChangeException {
display.setCurrent(westGameCanvas);
}
/*
* (非 Javadoc)
*
* @see javax.microedition.midlet.MIDlet#pauseApp()
*/
protected void pauseApp() {
// TODO 自动生成方法存根
}
/*
* (非 Javadoc)
*
* @see javax.microedition.midlet.MIDlet#destroyApp(boolean)
*/
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO 自动生成方法存根
}
// 结束Midlet时所调用的方法
void doExit() {
try {
destroyApp(false);
notifyDestroyed();
} catch (MIDletStateChangeException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -