×
Namespaces

Variants
Actions

How to create a TextBox in LCDUI

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: giaperrucci (07 Jun 2007)
Last edited: hamishwillee (08 Aug 2013)

This article shows how to create a text box in Java ME.

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
 
public class TextBox_Example extends MIDlet
{
Display display=Display.getDisplay(this);
 
public void startApp()
{
//TextBox(title,text,size,contrains)
TextBox textbox = new TextBox("Text Box Example",
"This is an example of a TextBox",50,0);
display.setCurrent(textbox);
}
}
Textbox.png
This page was last modified on 8 August 2013, at 05:02.
83 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×