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.
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.
I have done the same but problem is that when i type in combobox the typed letter get selected and thus u cant type further. Please give me example.
Originally Posted by jurka