How to implement auto complete functionality in a cell in JTable?
问题 My JTable has a cell editor implemented as an instance of the DefaultCellEditor(JComboBox) class. I've tried a couple of different things (Adding Auto-Completion Support to Swing Comboboxes ) but it still doesn't work. 1: // JComboBox combo = new JComboBox(new Object[] { "Ester", "Jordi", "Jordina", "Jorge", "Sergi" }); AutoCompleteDecorator.decorate(combo); DefaultCellEditor cellEditor = new DefaultCellEditor(combo); TableColumn column = myTable.getColumnModel().getColumn(2); column