This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Auto Complete in J2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Auto Complete in J2ME" Watch "Auto Complete in J2ME" New topic
Author

Auto Complete in J2ME

deny winarto
Greenhorn

Joined: Jan 07, 2009
Posts: 3
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Kamal Trivedi
Ranch Hand

Joined: May 22, 2006
Posts: 38
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

Kamal.B.Trivedi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Auto Complete in J2ME
 
Similar Threads
Garbage Collection
How to use HAJNDI without JBoss AS?
Is there a way to get the primary key with just one insert statement?
This is my new home.
How to Send/Receive SMS using j2me program