Don't call setEditable in ColorPane

Shows up in profiles, and should be unnecessary.
This commit is contained in:
draxdyn 2016-06-01 16:49:21 +02:00
parent 0b13660348
commit 8c2c1f4887

View file

@ -139,9 +139,7 @@ public class ColorPane extends JEditorPane {
if (hyperlinkEnabled) {
text = text.replaceAll("(<font color=[^>]*>([^<]*)) (\\[[0-9a-fA-F]*\\])</font>", "<a href=\"#$2\">$1</a> $3");
}
setEditable(true);
kit.insertHTML(doc, doc.getLength(), text, 0, 0, null);
setEditable(false);
int len = getDocument().getLength();
setCaretPosition(len);