j2me精解书籍代码j2me源代码很好的入门工具

源代码在线查看: rmsmidlet.java

软件大小: 18837 K
上传用户: add505
关键词: j2me 书籍 代码 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				package com.j2medev.chapter4;
				
				import javax.microedition.midlet.*;
				import javax.microedition.lcdui.*;
				
				public class RMSMIDlet extends MIDlet {
				    
				    private Display display = null;
				    private MainCanvas canvas = null;
				    
				    public void startApp() {
				        initMIDlet();
				    }
				    
				    private void initMIDlet(){
				        if(display == null)
				            display = Display.getDisplay(this);
				        canvas = new MainCanvas(this);
				        display.setCurrent(canvas);
				    }
				    
				    public void pauseApp() {
				    }
				    
				    public void destroyApp(boolean unconditional) {
				    }
				    
				    public void exit(){
				        destroyApp(false);
				        notifyDestroyed();
				    }
				}
							

相关资源