⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menucanvas.java~1~

📁 一个手机游戏菜单登入界面
💻 JAVA~1~
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -