< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolTipUI.java

Print this page

        

*** 259,269 **** 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)) { // 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(); --- 259,270 ---- 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) || ! "ancestor" == name || "graphicsConfiguration" == 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 >