circumgyrate.java

来自「一个midp1.0图片旋转的原程序」· Java 代码 · 共 48 行

JAVA
48
字号
//package com.circumgyrate;

import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class circumgyrate
    extends MIDlet {
  private Display display;
  private ViewCanvas canvas;

  public circumgyrate() {
    super();
    display = Display.getDisplay(this);
    canvas = new ViewCanvas(this);
  }

  protected void startApp() throws MIDletStateChangeException {
    display.setCurrent(canvas); // 设置显示画布对象
  }

  protected void pauseApp() {

  }

  protected void destroyApp(boolean arg0) throws MIDletStateChangeException {

  }

  public void exitMIDlet() {
    try {
      destroyApp(true);
    }
    catch (MIDletStateChangeException e) {
    }
    notifyDestroyed();
  }

}

⌨️ 快捷键说明

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