MIDP 3: Text Input

Back | Tutorial Home | Next

With TextInput class the user can define the custom component of text entry through the keypad. Specification gives examples of a custom Text Field and custom Text Box.

The text input has the mode parameter. We can set the text to be following modes

Use constructor TextInput() to create the TextInput object.

To set the mode use method setInputMode(int mode)

javax.microedition.lcdui.TextInputListener can be used to track the text inputs using TextInputListener.textInputChanged() There are lots of other useful methods. Go through specifications to study all the methods.

Back | Tutorial Home | Next

site comments powered by Disqus

More Tutorials

MIDP for Beginners
MIDP Gaming
JSR 179: Location Based Services

This page is a part of a frames based web site. If you have landed on this page from a search engine click here to view the complete page.