×
Namespaces

Variants
Actions
Revision as of 09:57, 15 June 2009 by tanjaluodes (Talk | contribs)

How to create a TextBox in LCDUI

From Nokia Developer Wiki
Jump to: navigation, search

The following code creates a Text Box.

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

101 page views in the last 30 days.