This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a JTable with Column 1 as a JComboBox Editor.
Now when I am using that, for column 1 each column is taking same set of ComboBox Items. But I want each column to take different items for ComboBox.
I am using
Extend DefaultCellEditor. Override getTableCellEditorComponent. Call super.getTableCellEditorComponent(...), cast the result to JComboBox, then set the model for that combo box:
You'll need to write the code to determine / find / create the model yourself, but this is the basic idea.