Thread View: borland.public.jbuilder.java.swing
3 messages
3 total messages
Started by Alex. Nanchen
Fri, 30 Jul 2004 16:55
Automatic combobox selection
Author: Alex. Nanchen
Date: Fri, 30 Jul 2004 16:55
Date: Fri, 30 Jul 2004 16:55
6 lines
1197 bytes
1197 bytes
Is it possible when you type something in an editable combobox that the combobox automatically find out in its list if there is a match. For example if you type "a", the combobox will positioned itself on the first item begginning whith "a". Then if you type "b", the combobox will position itself on the first item beggining with "ab" and so on. Thank you. Alex. Nanchen
Re: Automatic combobox selection
Author: Paul Furbacher [TeamB]
Date: Fri, 30 Jul 2004 20:21
Date: Fri, 30 Jul 2004 20:21
31 lines
1872 bytes
1872 bytes
Alex. Nanchen wrote:
> Is it possible when you type something in an editable combobox that
> the combobox automatically find out in its list if there is a
> match. For example if you type "a", the combobox will positioned
> itself on the first item begginning whith "a". Then if you type
> "b", the combobox will position itself on the first item beggining
> with "ab" and so on.
Google: keywords "jcombobox auto-completion"
Take the second hit titled "Java Technology Forums...."
for a ride.
In general, Google.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://www.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
Re: Automatic combobox selection
Author: FAXE
Date: Mon, 02 Aug 2004 19:47
Date: Mon, 02 Aug 2004 19:47
16 lines
1783 bytes
1783 bytes
I am looking for the same functionality. My attempt was to react on keyboard events in the editable field and then set the appropriate selection "manually"... but.. I do not know how to get to know the key input of the field.... JComboBox does not react as expected on key events.... but maybe you do.... gert Alex. Nanchen wrote: > Is it possible when you type something in an editable combobox that the combobox automatically find out in its list if there is a match. For example if you type "a", the combobox will positioned itself on the first item begginning whith "a". Then if you type "b", the combobox will position itself on the first item beggining with "ab" and so on. > > Thank you. > > Alex. Nanchen >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads