×
Namespaces

Variants
Actions
Revision as of 08:23, 2 February 2012 by hamishwillee (Talk | contribs)

DateField in LCDUI

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: giaperrucci (07 Jun 2007)
Last edited: hamishwillee (02 Feb 2012)

The following code creates a Form with a Date Field.

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
 
public class Date_Field extends MIDlet
{
Display display=Display.getDisplay(this);
 
public void startApp()
{
Form form = new Form("Form example");
// DateField(label,type);
DateField datefield = new DateField("Date Field Example",
DateField.DATE_TIME);
form.append(datefield);
display.setCurrent(form);
}
}

The following screenshot is an outcome.

Datefield.png

50 page views in the last 30 days.