new TextBox(String title, String text, int maxSize, int constraints) : TextBox « javax.microedition.lcdui « Java by API






new TextBox(String title, String text, int maxSize, int constraints)

    


import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.TextBox;
import javax.microedition.midlet.MIDlet;

public class Main extends MIDlet {

  private TextBox textbox;

  public Main() {
    textbox = new TextBox("", "Hi Small World!", 20, 0);
  }

  public void startApp() {
    Display.getDisplay(this).setCurrent(textbox);
  }

  public void pauseApp() {
  }

  public void destroyApp(boolean unconditional) {
  }
}

   
    
    
    
  








Related examples in the same category

1.TextBox: addCommand(Command cmd)
2.TextBox: setCommandListener(CommandListener l)
3.TextBox: setTicker(Ticker ticker)