Results 1 to 3 of 3
Thread: JComboBox
- 02-19-2009, 11:39 AM #1
Member
- Join Date
- Feb 2009
- Posts
- 18
- Rep Power
- 0
JComboBox
How to use JCombobox which is editable.
I want that if user enters a in the combo box then it should search database and return strings starting with a nd shuold be displayed in dropdown list of combo box(If possible the combobox must automatically dropdown). also if there are no words starting with enterd string then the dropdown list should not show anything.
- 02-19-2009, 03:51 PM #2
Member
- Join Date
- Jul 2008
- Posts
- 67
- Rep Power
- 0
Here comes my solution:
All the part searching can be done with some lightweight SQL database, so you need listener which registers the characters entered. If there has been over 3 chars entered then make search in sql. Show results by filling comboBox model.
I'll make example if you would like.
- 02-19-2009, 05:26 PM #3
Member
- Join Date
- Feb 2009
- Posts
- 18
- Rep Power
- 0
Similar Threads
-
I need help with JComboBox
By eva21 in forum New To JavaReplies: 1Last Post: 11-28-2008, 10:05 PM -
JCombobox
By daniel50096230 in forum NetBeansReplies: 1Last Post: 09-21-2008, 12:23 PM -
JComboBox
By Fosters in forum AWT / SwingReplies: 0Last Post: 08-10-2008, 01:22 PM -
Help with jComboBox
By Marcus in forum AWT / SwingReplies: 2Last Post: 07-01-2007, 11:08 PM -
jcombobox
By Freddie in forum AWT / SwingReplies: 4Last Post: 05-11-2007, 12:48 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks