[fixes #968] Fix bad highlight colors

This commit is contained in:
Sibo Van Gool 2021-07-18 02:02:43 +02:00
parent 9eea6edfe4
commit 295c9269b1

View File

@ -239,8 +239,10 @@ public abstract class FlightConfigurablePanel<T extends FlightConfigurableCompon
c.setOpaque(true); c.setOpaque(true);
if ( isSelected) { if ( isSelected) {
c.setBackground(table.getSelectionBackground()); c.setBackground(table.getSelectionBackground());
c.setForeground((Color)UIManager.get("Table.selectionForeground"));
} else { } else {
c.setBackground(table.getBackground()); c.setBackground(table.getBackground());
c.setForeground(table.getForeground());
} }
Border b = null; Border b = null;
if ( hasFocus ) { if ( hasFocus ) {