I have a method which returns an ArrayList of phrases to be used as the user types characters into a combobox. These phrases would ideally show up in a drop-down menu.
The method is in a class of its own called PhraseList.
I have a GUI class which contains a combobox. How do I go about capturing what the user types in and then get this list of phrases to pop-up in a dropdown menu?
You can extract this/these Char(s) typed into JComboBox or JTextField, by implements Document and with AttributeSet,
Then you can determine for continious Chars sequence (I think that only for continious), startWith Char(s), contains Char(s),
Excelent example AutoComplete JComboBox and JTextField