Adding CheckBox to DefaultTableModel
I have a DefaultTableModel which is populated with an Object array.
Now I want to add a column with checkBoxes and perform operations accordingly.
When I add the checkbox into the Object array and view it, I get text displayed
'javax.swing.JCheckBox[,0,0,0x0....', how do I get it to show a checkbox and add actions to it?
JTable have default checkbox renderer/editor for boolean values. Just make your TableModel#getColumnClass return Boolean.class for given column.