Actually CheckBoxList#setCheckBoxEnabled(false) has this behavior:
It Disables all rows components, I think this is the way that should behave:
Only checkbox it's disabled. To do that I modify CheckBoxListCellRenderer#getListCellRendererComponent() and comment:
- Code: Select all
// copy the background and foreground for the renderer component
setBackground(listCellRendererComponent.getBackground());
listCellRendererComponent.setBackground(null);
setForeground(listCellRendererComponent.getForeground());
listCellRendererComponent.setForeground(null);
// I commented this line:
//listCellRendererComponent.setEnabled(_checkBox.isEnabled());
Thank you.