Take the 2-minute tour ×

I am sure this has been asked but I can't find it (maybe I don't know how to search for it).

I have a JComboBox with lots of values, so navigating through all of them is painful. I would like it to change its selection the way browsers do: when you type the first letter, say s, it would select the first element starting with s, then if you quickly type the second letter, say a, the selection would change to the first element starting with sa, and so on.

Just a transparent, "typeable" JComboBox, not a JTextField where you start typing then a pull-down of options shows up.

share|improve this question
are you looking for this: stackoverflow.com/questions/6777473/java-combobox-autocomplete? –  Vikdor Aug 20 '12 at 17:15
add comment

1 Answer

up vote 4 down vote accepted
share|improve this answer
add comment

Your Answer


