Namespaces
Variants
Actions

Date field in Java ME (Português)

Jump to: navigation, search
Dados do artigo

Compatibilidade
Plataforma(s): Java ME

Artigo
Tradução:
Originado de Date field
Última alteração feita por lpvalente em 07 Feb 2012

Este artigo mostra como criar um Form com um 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);
}
}

O resultado é o seguinte screenshot.

Datefield.png

This page was last modified on 7 February 2012, at 21:45.
68 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