资源预览内容
亲,该文档总共2页全部预览完了,如果喜欢就下载吧!
资源描述
*Midletimport javax.microedition.lcdui.Display;import javax.microedition.midlet.*;public class Midlet extends MIDlet private Display display;private pauseCanvas canvas; /声明画布对象 canvaspublic Midlet()display = Display.getDisplay(this); /获取 Displaycanvas=new pauseCanvas(); /创建画布对象 canvasdisplay .setCurrent(canvas); /设置 canvas 为当前显示对象public void startApp() public void pauseApp() public void destroyApp(boolean unconditional) *pauseCanvasimport javax.microedition.lcdui.Canvas;import javax.microedition.lcdui.Graphics;public class pauseCanvas extends Canvas protected void paint(Graphics g) protected void hideNotify() System.out.println(画面暂停);protected void showNotify() System.out.println(画面继续);
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号