IDEA-170099 [followup] let Swing text components dynamically scale HTML text on user scale factor change

This commit is contained in:
Anton Tarasov
2017-04-20 11:42:16 +03:00
parent e343e7a688
commit 54dbc83651
@@ -104,6 +104,9 @@ public class UIUtil {
DEFAULT_HTML_KIT_CSS = kit.getStyleSheet();
// .. erase global ref to this CSS so no one can alter it
kit.setStyleSheet(null);
// Applied to all JLabel instances, including subclasses. Supported in JBSDK only.
UIManager.getDefaults().put("javax.swing.JLabel.userStyleSheet", UIUtil.JBHtmlEditorKit.createStyleSheet());
}
private static void blockATKWrapper() {