--- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLabelUI.java 2017-10-31 11:37:06.714524800 +0530 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLabelUI.java 2017-10-31 11:37:05.746978100 +0530 @@ -471,8 +471,9 @@ } public void propertyChange(PropertyChangeEvent e) { - String name = e.getPropertyName(); - if (name == "text" || "font" == name || "foreground" == name) { + String name = e.getPropertyName(); + if (name == "text" || "font" == name || "foreground" == 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.