I have the same Problem with my Table. I want to insert a JCombobox in the row in the left, but i also recieve an IllegalArgumentException. Here is the code of the Class TableGUI:
ComboBoxModel cbModel = new DefaultComboBoxModel(Article.articleType.values());
JComboBox cbx_auswahl = new JComboBox(cbModel);
cbx_auswahl.setModel(cbModel);
TableAdapter adapter = new TableAdapter(dataVector);
tbl_content = new JTable(adapter);
tbl_content.setRowHeight(30);
tbl_content.setAutoCreateRowSorter(true);
tbl_content.getTableHeader().setReorderingAllowed(false);
tbl_content.getColumn(TableAdapter.AT_COLUMN).setCellEditor(new ComboBoxEditor(cbx_auswahl));
c.add(tbl_content);
now here is the Exception:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Identifier not found
at javax.swing.table.DefaultTableColumnModel.getColum nIndex(Unknown Source)
at javax.swing.JTable.getColumn(Unknown Source)
at GUI_JAXB.TableGUI.<init>(TableGUI.java:75)
at GUI_JAXB.ImportGUI.actionPerformed(ImportGUI.java: 105)
at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
...