/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class ContohForm extends MIDlet {
Display display;
Form myForm;
TextField tfEmail;
TextField tfNama;
DateField strTtl;
public void inisialisasi() {
myForm=new Form("Form pertama");
tfEmail=new TextField("Email :","",10,TextField.EMAILADDR);
tfNama=new TextField("Nama :","",10,TextField.ANY);
strTtl=new DateField("TTL :",DateField.DATE);
myForm.append(tfNama);
myForm.append(tfEmail);
myForm.append(strTtl);
}
public void startApp() {
inisialisasi();
if (display==null){
display=Display.getDisplay(this);
display.setCurrent(myForm);
}
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}
Type your summary here
Type rest of the post here
Technorati Profile