|
@@ -24,6 +24,7 @@ package com.dmdirc.ui.swing.components.validating;
|
24
|
24
|
|
25
|
25
|
import com.dmdirc.config.prefs.validator.Validator;
|
26
|
26
|
import com.dmdirc.ui.IconManager;
|
|
27
|
+import com.dmdirc.ui.swing.UIUtilities;
|
27
|
28
|
import com.dmdirc.config.prefs.validator.ValidationResponse;
|
28
|
29
|
|
29
|
30
|
import java.awt.Font;
|
|
@@ -82,7 +83,8 @@ public class ValidatingJTextField extends JComponent implements DocumentListener
|
82
|
83
|
errorIcon =
|
83
|
84
|
new JLabel(IconManager.getIconManager().getIcon("input-error"));
|
84
|
85
|
|
85
|
|
- if (!"javax.swing.plaf.synth.SynthLookAndFeel".equals(UIManager.get("TextFieldUI"))) {
|
|
86
|
+ if (!"javax.swing.plaf.synth.SynthLookAndFeel".equals(UIManager.get("TextFieldUI"))
|
|
87
|
+ && !UIUtilities.isWindowsUI()) {
|
86
|
88
|
setBorder(textField.getBorder());
|
87
|
89
|
textField.setBorder(BorderFactory.createEmptyBorder());
|
88
|
90
|
setBackground(textField.getBackground());
|