package com.j2medev.other;
import java.util.Date;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.*;
public class SonyEriMIDlet extends MIDlet
{
private Display display;
protected void startApp() throws MIDletStateChangeException
{
display = Display.getDisplay(this);
Form mainForm = new Form("Date");
DateField df = new DateField("Now", DateField.DATE_TIME);
df.setDate(new Date());
mainForm.append(df);
display.setCurrent(mainForm);
}
protected void pauseApp()
{
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException
{
}
} |