3

I need search Box using Java Swing which shows suggestion from database when we type letters if we click on any suggestion it will perform some action . if it possible in java swing please give the source code

thanks in advance

4

1 回答 1

3

You can use DefaultComboBoxModel , and the output will be like that.

Try this


In this code you will find countries array , so you need to take this array from your database

于 2013-04-12T16:36:36.933 回答