JAVA search list box

I searched for how to do this but found nothing. I'm not good at English, so I didn't know what it was called. Please tell me how to create something like this or what it is called. Thank!

enter image description here

+3


source to share


1 answer


The easiest way is to use the SwingX library.

Example:



JComboBox combobox = new JComboBox(new Object[] { "One", "Two",
        "Three", "Four", "Five" });
AutoCompleteDecorator.decorate(comboBox);

      

If you want to do it yourself, read the following: http://www.orbital-computer.de/JComboBox/

+3


source







All Articles