×
Namespaces

Variants
Actions
Revision as of 09:17, 8 August 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Date field in Java ME (Português)

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

Artigo
Tradução:
Originado de Date field
Por valderind4
Última alteração feita por hamishwillee em 08 Aug 2013

Este artigo mostra como criar um Form com um DateField.

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);
}
}

O resultado é o seguinte screenshot.

Datefield.png

This page was last modified on 8 August 2013, at 09:17.
85 page views in the last 30 days.
×