• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Auto Complete in J2ME

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.. I have a question regarding autocomplete in J2ME
I made an application that has more than 400 user input (it's road names),
So auto completing is a necessity in my case..
because it's very troublesome for user to find what the item they want;
they have to scroll down over 400 items..

But i can't find a reference regarding this feature anywhere...

So could anyone give me the general idea, of what i should do to create this feature?

I'm definitely sure it is possible in J2ME,
i've seen .jar applications that use this feature, such as Microsoft Encarta.

thanks.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's no pre-packaged auto-complete even in the full J2SE. I don't know if there are any 3d-party solutions.

Basically, you'd rebuild the datamodel on the dropdown list every time someone typed (or removed) a character from the edit box. Generally, you don't start doing this until the edit text is several characters long and the tree of potential matches is manageably small.
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So you required some kind of component like"Phone Book"
You can use the 3rd party component from J2ME Polish
the component name is "Filtered List"
It consist a combination of Text Field & List

http://www.j2mepolish.org/cms/leftsection/documentation/design/visual-guide.html#gui-screen-filteredlist
 
reply
    Bookmark Topic Watch Topic
  • New Topic