I have a JTable with a custom model implemented extending AbstractTableModel.
public abstract class AbstractTable extends AbstractTableModel{
public Class<? extends Object> getColumnClass(int c) {}
}
Because I've implemented the getColumnClass method, Boolean values are rendered in the table like checkboxes. I would like to intercept checkbox's change of status but unfortunately I can't add directly a mouse listener, because I don't have a reference to the checkbox itself, which it isn't created by me.
How can I set a mouse listener to intercept the checkbox status change event?
EDIT:
@jzd answer is correct. I can catch the change in setValue method. But I would like to know how to implement a mouse listener based approach.