posted 15 years ago
I'd drop the custom check box renderer / editor combination, and use Swing's own mechanism for this:
- let your TableModel return Boolean.class for that column; the values should of course be Boolean objects as well
- let the JTable use its default renderer / editor for that, which will already be a check box because of the previous
- use a TableModelListener to listen for changes to cell values
Alternatively to the last step, you can override your TableModel's setValueAt method: