JXTable: use a TableCellEditor and TableCellRenderer for a specific cell instead of the whole column
I have a JXTable compound of 6 columns and two of them are JCheckBox . I would like to have the following behavior: If the first checkbox is checked, the second checkbox is enabled and can be checked or not. If the first checkbox is unchecked, the second must be disabled and unchecked. I edited an image with Photoshop to show the desired result: For the CheckOne and CheckTwo columns i use a custom TableCellEditor and TableCellRenderer : public class CheckBoxCellEditor extends AbstractCellEditor implements TableCellEditor { private static final long serialVersionUID = 1L; private JCheckBox