/* * To change this template, choose Tools | Templates * and open the template in the editor. */ import javax.microedition.midlet.*; import java.util.TimeZone; import javax.microedition.lcdui.*; public class CalenderMidlet extends MIDlet { private Display display; private Form form; private DateField calender; public CalenderMidlet() { calender = new DateField("Can modify Date and time: ",DateField.DATE_TIME,TimeZone.getDefault()); } public void startApp() { display = Display.getDisplay(this); form = new Form ("Calender"); form.append(calender); display.setCurrent(form); } public void pauseApp(){} public void destroyApp(boolean unconditional) { notifyDestroyed(); } }