java comboBox autocomplete
问题 Can someone tell me how to change this code to have autoselection and I could be able to write not existing items, because it doesnt let me to write new items. public class ComboBoxFill extends PlainDocument { ComboBoxModel model; JComboBox comboBox=new JComboBox(); JTextComponent editor; public ComboBoxFill(ComboBoxModel model, JComboBox comboBox,JTextComponent editor) { this.model = model; this.comboBox=comboBox; this.editor=editor; } public void insertString (int offs,String str