PlayerNameRecord.java
上传用户:public
上传日期:2010-01-27
资源大小:484k
文件大小:1k
- package GameDisplay;
- import javax.microedition.lcdui.*;
- public class PlayerNameRecord extends TextBox implements CommandListener {
- public PlayerNameRecord() {
- super("请输入英雄的称呼(英文):", "", 50, TextField.ANY);
- try {
- jbInit();
- }
- catch(Exception e) {
- e.printStackTrace();
- }
- }
- private void jbInit() throws Exception {
- setCommandListener(this);
- addCommand(new Command("OK", Command.OK, 1));
- }
- public void commandAction(Command command, Displayable displayable) {
- if(command.getCommandType()==Command.OK)
- Control.highrecord.matches(this.getString(),Control.game.floor);/////////////输入排行榜
- Control.quitApp();
- }
- }