Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 21:52, 7 June 2007.

Textfield

From Forum Nokia Wiki

The following code creates a Form with a Text Field.

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
 
public class Text_Field extends MIDlet 
{
    Display display=Display.getDisplay(this);
    
    public void startApp() 
    {
       Form form = new Form("Form example");
//     TextField(label,text,size,constrains);
       TextField textfield =new TextField("TEXT FIELD","",25,TextField.ANY);
       form.append(textfield);
       display.setCurrent(form);       
    }
}

The following screenshot is the outcome

Image:textfield.png

Related Discussions
Thread Thread Starter Forum Replies Last Post
Disable generic alert in Nokia 6600 youngboyguy Mobile Java General 6 2004-08-12 12:18
textfield/textbox alphanumeric ? funfrock Mobile Java General 1 2004-07-16 13:28
strange textfield input diplm Mobile Java General 5 2004-05-29 15:07
Scrollable textfield AND key event handling (Canvas) atonce? tlwc Mobile Java General 1 2003-08-25 11:22
Predictive Text in Full Screen jilko Mobile Java Media (Graphics & Sounds) 4 2007-06-07 13:19
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZjavaQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX