Namespaces
Variants
Actions

How to create a TextBox in Java ME

Jump to: navigation, search
Article Metadata

Compatibility
Platform(s): Java ME

Article
Created: giaperrucci (07 Jun 2007)
Last edited: hamishwillee (29 Aug 2012)

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 29 August 2012, at 04:06.
215 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved