aspose file tools
The moose likes Java Micro Edition and the fly likes Auto Populating the Choice Group with ItemStateListener Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "Auto Populating the Choice Group with ItemStateListener" Watch "Auto Populating the Choice Group with ItemStateListener" New topic
Author

Auto Populating the Choice Group with ItemStateListener

Deepan Devadasan
Ranch Hand

Joined: Jan 25, 2007
Posts: 226
Hi Ranchers,

I have developed a smal Address book...

This is the scenario..
When the program load and the main screen is shown, there will be two items within a form - TextField(for Searching), A Choice Group(for displaying all the names in the addressbook)

The choice group is poputed with all the contacts on startup..

and i have put a itemStateChanged Action for the search TextField, where whenever the user characters to make up the search key, the Choice Group will be populated for every character incrementally...

The problem here, every chracter rebuilds the Enumeration, meaning a overhead for the device...

I want to have it in a way, the user should be given option to continusly keyin the characters that make the filter criterion, and after some time (a fraction of time) the system starts to take the cumulative character as the search key..

Some please provide me some idea, probably with a code...

By the way, the current, not so efficient app is over here

http://www.hostj2me.com/downloads/515/1951/MobileApplication.jad
http://www.hostj2me.com/downloads/515/1951/MobileApplication.jar


Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)
adroit dhanwada
Greenhorn

Joined: Apr 18, 2007
Posts: 16
Hi Thevathasan
can you share your java code please. i have to do exactly the same thing.iam not able to figure out how to do.
"every chracter rebuilds the Enumeration"
how to do that enumeration .iam doing in blackberry env.iam using objectchoicefield & Editfield(Textfield) & FieldchangeListener on textfield
kindly help.

regards
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Auto Populating the Choice Group with ItemStateListener
 
Similar Threads
New to J2ME
how to send sms to the cell phones
Service Center problem
MMAPI Video Capture: Handset Support
how to get message from mobile to midlet