Browse Source

issue 244: Might aswell make all LAFs use the same style for validating text fields now two main LAFs do it this way

git-svn-id: http://svn.dmdirc.com/trunk@4179 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Gregory Holmes 16 years ago
parent
commit
eb3f1c885b

+ 0
- 7
src/com/dmdirc/ui/swing/components/validating/ValidatingJTextField.java View File

83
         errorIcon =
83
         errorIcon =
84
                 new JLabel(IconManager.getIconManager().getIcon("input-error"));
84
                 new JLabel(IconManager.getIconManager().getIcon("input-error"));
85
 
85
 
86
-        if (!"javax.swing.plaf.synth.SynthLookAndFeel".equals(UIManager.get("TextFieldUI"))
87
-            && !UIUtilities.isWindowsUI()) {
88
-            setBorder(textField.getBorder());
89
-            textField.setBorder(BorderFactory.createEmptyBorder());
90
-            setBackground(textField.getBackground());
91
-        }
92
-
93
         setLayout(new MigLayout("fill, ins 0, hidemode 3, gap 0"));
86
         setLayout(new MigLayout("fill, ins 0, hidemode 3, gap 0"));
94
         add(textField, "grow, pushx");
87
         add(textField, "grow, pushx");
95
         add(errorIcon);
88
         add(errorIcon);

Loading…
Cancel
Save