Hi Alexander,
Maybe it would be more optimal to update UI in a property change
listener added to the UIManager?
public void propertyChange(PropertyChangeEvent e) {
if ("lookAndFeel" == e.getPropertyName()) {
label.updateUI();
}
}
--Semyon
On 3/18/2016 11:58 AM, Alexander Scherbatiy wrote:
Hello,
Could you review the fix:
bug: https://bugs.openjdk.java.net/browse/JDK-8152159
webrev: http://cr.openjdk.java.net/~alexsch/8152159/webrev.00
The TitledBorder label is only used for painting and does not
belong to any component hierarchy so it is not updated by
SwingUtilities.updateComponentTreeUI() method.
The fix updates the TitledBorder label UI when the label is requested.
Thanks,
Alexandr.