< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolTipUI.java
Print this page
@@ -259,11 +259,12 @@
private static class PropertyChangeHandler implements
PropertyChangeListener {
public void propertyChange(PropertyChangeEvent e) {
String name = e.getPropertyName();
if (name.equals("tiptext") || "font".equals(name) ||
- "foreground".equals(name)) {
+ "foreground".equals(name) ||
+ "ancestor" == name || "graphicsConfig" == name) {
// remove the old html view client property if one
// existed, and install a new one if the text installed
// into the JLabel is html source.
JToolTip tip = ((JToolTip) e.getSource());
String text = tip.getTipText();
< prev index next >