Commit f43d269e authored by Nico Mack's avatar Nico Mack

Minor code cleanup

parent 12338c5c
......@@ -85,6 +85,8 @@ public class HtmlBox extends SelectableCorona implements InformationReceiver<Str
// * Constant(s) *
// ***************************************************************************
private static final String CONTENT_TEXT_HTML = "text/html";
private static final RenderingHints renderingHints = new RenderingHints(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
private static final Logger LOGGER = LoggerFactory.getLogger(HtmlBox.class.getSimpleName());
......@@ -160,7 +162,6 @@ public class HtmlBox extends SelectableCorona implements InformationReceiver<Str
styleSheets = new SwitchablePair<>(new StyleSheet(), new StyleSheet());
applyStyles(styleSheets.getFirst(), switchableStyleRules.getFirst());
applyStyles(styleSheets.getSecond(), switchableStyleRules.getSecond());
// applyStyles(editorKits.getSecond().getStyleSheet(), switchableStyleRules.getSecond());
styleSheets.setSwitched(this.isSelected);
editorKit.getStyleSheet().addStyleSheet(styleSheets.getCurrent());
} else {
......@@ -169,7 +170,7 @@ public class HtmlBox extends SelectableCorona implements InformationReceiver<Str
}
editor = new JEditorPane();
editor.setContentType("text/html"); //$NON-NLS-1$
editor.setContentType(CONTENT_TEXT_HTML);
editor.setEditorKit(editorKit);
editor.setEditable(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment