游戏开发入门 |
| 作者:不详 来源:本站整理 发布时间:2005-11-24 17:09:17 |
|
ystem.out.println(Runtime.getRuntime().freeMemory()); } private void initLoginForm(){ form = new Form("用户登陆"); tfAccount = new TextField("帐号:", "", 9, TextField.ANY); // tfPassWord = new TextField("密码:", "", 9, TextField.PASSWORD); cmdReg = new Command("注册", Command.SCREEN, 2); cmdBack = new Command("后退", Command.BACK, 3); form.append(tfAccount); // form.append(tfPassWord); form.addCommand(cmdReg); form.addCommand(cmdBack); form.setCommandListener(this); gameMIDlet.display.setCurrent(form); } public void commandAction(Command command, Displayable displayable) { if (command == cmdReg) { setGameState(LOGO, 30); gameMIDlet.display.setCurrent(this); } } private void releaseLoginForm(){ for (int i = form.size() - 1; i >= 0; i --){ form.delete(i); } tfAccount = null; // tfPassWord = null; cmdBack = null; cmdReg = null; form = null; } } |
| [] [返回上一页] [打 印] |
|
文章评论 |
