www.pudn.com > timeKeeper.rar > TimeKeeperMIDlet.java


package jiangy.timekeeper; 
 
import javax.microedition.lcdui.Display; 
import javax.microedition.midlet.MIDlet; 
import javax.microedition.midlet.MIDletStateChangeException; 
 
 
public class TimeKeeperMIDlet extends MIDlet { 
	private Watch w; 
	private Display display; 
	 
	public TimeKeeperMIDlet() { 
		display = Display.getDisplay(this); 
		w = new Watch(display); 
	} 
 
	protected void destroyApp(boolean arg0) throws MIDletStateChangeException { 
		// TODO Auto-generated method stub 
		w = null; 
		display = null; 
	} 
 
	protected void pauseApp() { 
		// TODO Auto-generated method stub 
 
	} 
 
	protected void startApp() throws MIDletStateChangeException { 
		// TODO Auto-generated method stub 
		display.setCurrent(w); 
	} 
 
}