TextComponents: border of focused non-editable text components had wrong color

This commit is contained in:
Karl Tauber
2021-01-30 01:06:03 +01:00
parent 036090a947
commit 3520a0f1fb
2 changed files with 3 additions and 2 deletions

View File

@@ -35,7 +35,6 @@ import javax.swing.JViewport;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.plaf.basic.BasicBorders;
import javax.swing.text.JTextComponent;
import com.formdev.flatlaf.FlatClientProperties;
import com.formdev.flatlaf.util.DerivedColor;
@@ -159,7 +158,7 @@ public class FlatBorder
return false;
}
return c.isEnabled() && (!(c instanceof JTextComponent) || ((JTextComponent)c).isEditable());
return c.isEnabled();
}
protected boolean isFocused( Component c ) {