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