|
@@ -81,6 +81,7 @@ public class ToolTipPanel extends JPanel implements MouseListener {
|
81
|
81
|
this.icon = new JLabel(IconManager.getIconManager().getIcon("warning"));
|
82
|
82
|
|
83
|
83
|
setBackground(Color.WHITE);
|
|
84
|
+ setForeground(Color.BLACK);
|
84
|
85
|
setBorder(BorderFactory.createEtchedBorder());
|
85
|
86
|
|
86
|
87
|
tooltip = new TextLabel();
|
|
@@ -96,6 +97,8 @@ public class ToolTipPanel extends JPanel implements MouseListener {
|
96
|
97
|
protected void reset() {
|
97
|
98
|
SimpleAttributeSet sas = new SimpleAttributeSet();
|
98
|
99
|
|
|
100
|
+ StyleConstants.setForeground(sas, Color.BLACK);
|
|
101
|
+ StyleConstants.setBackground(sas, Color.WHITE);
|
99
|
102
|
if (warning == null || warning.isEmpty()) {
|
100
|
103
|
tooltip.setText(defaultHelp);
|
101
|
104
|
icon.setVisible(false);
|
|
@@ -126,6 +129,8 @@ public class ToolTipPanel extends JPanel implements MouseListener {
|
126
|
129
|
icon.setVisible(false);
|
127
|
130
|
SimpleAttributeSet sas = new SimpleAttributeSet();
|
128
|
131
|
StyleConstants.setItalic(sas, false);
|
|
132
|
+ StyleConstants.setForeground(sas, Color.BLACK);
|
|
133
|
+ StyleConstants.setBackground(sas, Color.WHITE);
|
129
|
134
|
tooltip.getDocument().setParagraphAttributes(0, text.length(), sas, true);
|
130
|
135
|
}
|
131
|
136
|
|