Class EnablingCheckboxRenderer

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants, TableCellRenderer

public class EnablingCheckboxRenderer
extends JCheckBox
implements TableCellRenderer
Handle painting checkbox classes in a JTable.

Beyond the normal behavior of providing a checkbox to show the value, this disables the JCheckBox if the cell is not editable. This makes the visual behavior more in line with user expectations. The checkbox cell background is set to match selected status.

See Also:
Serialized Form