Namespaces
Variants
Actions

Date field

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

This page was last modified on 2 February 2012, at 08:23.
101 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved