J2ME 小球实验
frm=new Form ("小球"); runCommand =new Command("开始",Command .OK,1); exitCommand=new Command ("退出",Command .BACK ,1); pauseCommand =new Command("暂停",Command.OK,1); restCommand =new Command("继续",Command.OK ,1); mc=new MyCanvas(); dis=Display.getDisplay(this); t=new Thread (mc); frm.addCommand(runCommand); frm.addCommand(exitCommand); frm.setCommandListener(this);
用户评论