mirror of
https://github.com/correl/mage.git
synced 2025-03-17 01:06:26 -09:00
Don't call setEditable in ColorPane
Shows up in profiles, and should be unnecessary.
This commit is contained in:
parent
0b13660348
commit
8c2c1f4887
1 changed files with 0 additions and 2 deletions
|
@ -139,9 +139,7 @@ public class ColorPane extends JEditorPane {
|
||||||
if (hyperlinkEnabled) {
|
if (hyperlinkEnabled) {
|
||||||
text = text.replaceAll("(<font color=[^>]*>([^<]*)) (\\[[0-9a-fA-F]*\\])</font>", "<a href=\"#$2\">$1</a> $3");
|
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);
|
kit.insertHTML(doc, doc.getLength(), text, 0, 0, null);
|
||||||
setEditable(false);
|
|
||||||
int len = getDocument().getLength();
|
int len = getDocument().getLength();
|
||||||
setCaretPosition(len);
|
setCaretPosition(len);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue