/*
* dateFieldlet.java
*
* Created on 2005年4月15日, 上午11:32
*/
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
*
* @author Administrator
* @version
*/
public class dateFieldlet extends MIDlet implements CommandListener{
private Form aForm;
private Display aDisplay;
private DateField aDateField;
private Command exitCommand;
private Command okCommand;
private Alert anAlert;
public dateFieldlet(){
anAlert=new Alert("Today",null,null,AlertType.INFO);
anAlert.setTimeout(3000);
exitCommand=new Command("EXIT",Command.EXIT,1);
okCommand=new Command("OK",Command.EXIT,1);
aForm=new Form("DateFieldTest");
aDateField=new DateField("Today’s date:",DateField.DATE_TIME);
aForm.append(aDateField);
aForm.addCommand(exitCommand);
aForm.addCommand(okCommand);