×
Namespaces

Variants
Actions
Revision as of 09:07, 4 June 2009 by tanjaluodes (Talk | contribs)

DateField in LCDUI

From Nokia Developer Wiki
Jump to: navigation, search

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

63 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×