mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
take into account isEnabled()
This commit is contained in:
@@ -33,7 +33,12 @@ public class BooleanCellRenderer extends DefaultTableCellRenderer {
|
||||
int column) {
|
||||
super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
|
||||
if (value instanceof Boolean) {
|
||||
setText((Boolean)value ? "yes" : "<html><font color='red'>no</font></html>");
|
||||
if (table.isEnabled()) {
|
||||
setText((Boolean)value ? "yes" : "<html><font color='red'>no</font></html>");
|
||||
}
|
||||
else {
|
||||
setText((Boolean)value ? "yes" : "no");
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user