HelpMe.java
上传用户:public
上传日期:2010-01-27
资源大小:484k
文件大小:1k
- package GameDisplay;
- import javax.microedition.lcdui.*;
- public class HelpMe extends TextBox implements CommandListener {
- Command ok;
- public HelpMe() {
- super("使用说明","此小游戏完全根据“是男人就下一百层”游戏而制作,操作简单方便nn"+
- "具体操作: 4-->左键n"+
- " 6-->右键nn"
- +"当您中途退出游戏或者游戏失败按“退出”时,自动进入高分榜为您排名。高分榜不支持中文" , 255,0
- );
- try {
- jbInit();
- }
- catch(Exception e) {
- e.printStackTrace();
- }
- }
- private void jbInit() throws Exception {
- ok=new Command("确定",Command.OK,1);
- addCommand(ok);
- setCommandListener(this);
- }
- public void commandAction(Command command, Displayable displayable) {
- if(command==ok){
- Control.showMenu();
- }
- }
- }