|
@@ -30,7 +30,10 @@ import com.dmdirc.ui.interfaces.InputField;
|
30
|
30
|
import java.awt.event.ActionEvent;
|
31
|
31
|
import java.awt.event.ActionListener;
|
32
|
32
|
|
|
33
|
+import javax.swing.BorderFactory;
|
33
|
34
|
import javax.swing.JEditorPane;
|
|
35
|
+import javax.swing.plaf.ComponentUI;
|
|
36
|
+import javax.swing.plaf.basic.BasicEditorPaneUI;
|
34
|
37
|
import javax.swing.text.BadLocationException;
|
35
|
38
|
|
36
|
39
|
/**
|
|
@@ -94,4 +97,18 @@ public class TextPaneInputField extends JEditorPane implements InputField {
|
94
|
97
|
public void removeActionListener(ActionListener listener) {
|
95
|
98
|
//Ignore
|
96
|
99
|
}
|
|
100
|
+
|
|
101
|
+ /** {@inheritDoc} */
|
|
102
|
+ @Override
|
|
103
|
+ protected void setUI(final ComponentUI newUI) {
|
|
104
|
+ super.setUI(new BasicEditorPaneUI());
|
|
105
|
+ super.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
|
|
106
|
+ }
|
|
107
|
+
|
|
108
|
+ /** {@inheritDoc} */
|
|
109
|
+ @Override
|
|
110
|
+ public void updateUI() {
|
|
111
|
+ super.setUI(new BasicEditorPaneUI());
|
|
112
|
+ super.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
|
|
113
|
+ }
|
97
|
114
|
}
|