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

📄 micro3dmidlet.java

📁 跳舞的男孩
💻 JAVA
字号:
import javax.microedition.midlet.*;import javax.microedition.lcdui.*;public class Micro3DMIDlet extends MIDlet implements CommandListener{     private Micro3DCanvas mCanvas;  private Command exitCommand = new Command("Exit", Command.EXIT, 1);   /**   * Starts application and shows the list of samples. The user can    * select a sample for execution and return to the selection screen.   */  public void startApp()  {       mCanvas = new Micro3DCanvas();    mCanvas.addCommand(exitCommand);    mCanvas.setCommandListener(this);    Display.getDisplay(this).setCurrent(mCanvas);  }    /**   * Not used.   */  public void pauseApp()  {  }    /**   * Not used.   */  public void destroyApp(boolean unconditional)  {  }    /**   * Receives the command actions from the selection screen as well as   * the sample screens.   *   * @param command command   * @param displayable source of the command   */  synchronized public void commandAction(Command command, Displayable displayable)  {    if (command == exitCommand)    {    	mCanvas.clearResource();      destroyApp(true);      notifyDestroyed();    }     }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -