circumgyrate.java

来自「一个基于j2me MIDP1.0的图片翻转的源代码」· Java 代码 · 共 49 行

JAVA
49
字号

//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 + -
显示快捷键?