background/foreground (IDEA-79153)

This commit is contained in:
anna
2011-12-26 18:55:17 +01:00
parent 60d4f42363
commit 4468109946
@@ -707,12 +707,8 @@ public String getAccessorsVisibility() {
}
private void configureColors(boolean isSelected, JTable table, boolean hasFocus, final int row, final int column) {
if (isSelected) {
setForeground(table.getSelectionForeground());
} else {
setForeground(UIUtil.getTableForeground());
}
setForeground(isSelected ? UIUtil.getTableSelectionForeground() : UIUtil.getTableForeground());
setBackground(isSelected ? UIUtil.getTableSelectionBackground() : UIUtil.getTableBackground());
if (hasFocus) {
if (table.isCellEditable(row, column)) {
super.setForeground(UIUtil.getTableFocusCellForeground());