I am trying to add unique JComboBoxes to a column in a JTable. I know it is possible to add a JComboBox to an entire column using
TableColumn col = table.getColumnModel().getColumn(columnNumber);
col.setCellEditor(new MyComboBoxEditor(values));
but I need each JComboBox to be different and have different Strings inside it. Any ideas?
Override the getCellEditor(…) method. For example;