×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    4

    Question List with Serach text field

    Hi

    I have developed an application, which read contacts from phone book and display in list. if there are more than 100 contacts in phone book than it is very difficult to go to the 90th contact.

    so i want to show a search textfield with list, when user press any character in this field, list will focus to that match contact.

    I m not able to show textfield under list, how it is possible?

    for this purpose
    I have created a form and append search field on it but i m not able to append list in form.


    Is it possible or alternate....


    Thanks in advance....



    Muhammad Faheem

  2. #2
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    220

    Re: List with Serach text field

    Hi There,

    There in no readymade componet available in J2ME that supports the searchable list. To have this type of functionality you need to develope your own custom control using canvas.

    Regards
    Amit

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    4

    Question Re: List with Serach text field

    Thanks for rply

    But how can i add/append high-level objects like list, search text field in canvas.

    any idea please...

    or there is any way to display both controls (list & textField) in midlet.

    Thanks in Advance

    Faheem

  4. #4
    Regular Contributor
    Join Date
    Jun 2008
    Location
    Singapore
    Posts
    167

    Re: List with Serach text field

    Hello

    In J2ME, you can have Canvas and other Form's elements using CustomeItem (e.g. http://www.java2s.com/Code/Java/J2ME...ItemMIDlet.htm)
    ---Knowledge sharing is power---

    Hans

  5. #5
    Registered User
    Join Date
    Oct 2007
    Posts
    25

    List with Serach text field

    Use J2ME Polish to meet Your Requirement .Go through the below URL:

    http://www.j2mepolish.org/cms/leftse...teredlist.html

  6. #6
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: List with Serach text field

    Hi Muhammad Faheem,

    as told in the various other replies, you can do this in two ways:

    * using high-level UI components: basically, a Form with a TextField and some dinamically added/removed Items (CustomItems should be the best choice)

    * using low-level, Canvas-based UI: with this option you should implement the whole interface elements and user interaction from the grounds up. If you want to avoid that, you could also try to take a look at available Java ME UI frameworks to see if some of them can suit your needs

    Hope it helps,
    Pit

Similar Threads

  1. Replies: 4
    Last Post: 2009-02-17, 21:24
  2. Replies: 2
    Last Post: 2005-06-22, 17:06
  3. Replies: 1
    Last Post: 2004-03-01, 08:37
  4. Using JSP to generate WML text field
    By nai in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2003-09-08, 09:55

Posting Permissions

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