menucanvas.java~1~
来自「一个手机游戏菜单登入界面」· JAVA~1~ 代码 · 共 40 行
JAVA~1~
40 行
package gamemidlet;
import javax.microedition.lcdui.*;
/**
* <p>Title: 黄小辉8000106286网通062班</p>
* <p>Description: GameMIDlet</p>
* <p>Copyright: Copyright (c) 2009</p>
* <p>Company: NCU</p>
* @author not attributable
* @version 1.0
*/
public class MenuCanvas extends Canvas implements CommandListener {
public MenuCanvas() {
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
private void jbInit() throws Exception {
// Set up this Displayable to listen to command events
setCommandListener(this);
// add the Exit command
addCommand(new Command("Exit", Command.EXIT, 1));
}
public void commandAction(Command command, Displayable displayable) {
/** @todo Add command handling code */
}
protected void paint(Graphics g) {
/** @todo Add paint codes */
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?