×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    87

    taking input using forms

    Hello,
    i want a MIDlet to take input using forms. if someone please guide me through the process. And pleaes provide code snnipet to do that. Thanks in advance

  2. #2
    Regular Contributor
    Join Date
    May 2007
    Location
    India
    Posts
    208

    Re: taking input using forms

    Assuming that you want to take textual input and also that you already know how to display the J2ME form; use append method of form to add TextField in it. You can add as many as per your requirement. When you will display such form - user can enter text in the text field. Also, add a Command to the form so that when user is doen he can press the command. The form will implement CommandListener and hence will have a method commandAction. In commandAction you can take strings that use has entered using TextField method getString().

    You can also take input from user using other components (such as Checkboxes, Radio buttons and drop down list)at the place of TextField.

    For code snippet - see the code of sample application UIDemo supplied with WTK.

Similar Threads

  1. All the editors taking in Numeric input
    By gigglie in forum Symbian
    Replies: 12
    Last Post: 2008-07-25, 08:22
  2. ceiksecreted editor not taking chinese input?
    By shafali gupta in forum Symbian
    Replies: 0
    Last Post: 2007-08-24, 10:26
  3. Edit box not taking character input
    By pankaj-jataayu in forum Symbian
    Replies: 7
    Last Post: 2005-07-21, 05:14
  4. subscribing to Analog Input changes
    By fernanfr in forum Nokia M2M
    Replies: 1
    Last Post: 2003-03-04, 10:32
  5. SMS from change in N30 input pin
    By vhkauppi in forum Nokia M2M
    Replies: 2
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×