TextField.PHONENUMBER : TextField « javax.microedition.lcdui « Java by API






TextField.PHONENUMBER

  
 
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.TextField;
import javax.microedition.midlet.MIDlet;

public class Main extends MIDlet {
  protected Display display;

  protected void startApp() {
    display = Display.getDisplay(this);

    Form form = new Form("Item Layout");

    form.append("line");

    form.append(new TextField("Phone", "1234567890", 10, TextField.PHONENUMBER));

    display.setCurrent(form);
  }

  protected void pauseApp() {
  }

  protected void destroyApp(boolean unconditional) {
  }
}

   
    
  








Related examples in the same category

1.TextField.ANY
2.TextField.NUMERIC
3.TextField.PASSWORD