浏览代码

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 年前
父节点
当前提交
eb3f1c885b
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0
    7
      src/com/dmdirc/ui/swing/components/validating/ValidatingJTextField.java

+ 0
- 7
src/com/dmdirc/ui/swing/components/validating/ValidatingJTextField.java 查看文件

@@ -83,13 +83,6 @@ public class ValidatingJTextField extends JComponent implements DocumentListener
83 83
         errorIcon =
84 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 86
         setLayout(new MigLayout("fill, ins 0, hidemode 3, gap 0"));
94 87
         add(textField, "grow, pushx");
95 88
         add(errorIcon);

正在加载...
取消
保存