Open GoogleCodeExporter opened 9 years ago
This was reported before, and no easy way of solving it. You MUST have the
JEditorPane enclosed in a JScrollBar before you call setContetType. The above
patch
caused some other issues.
If you do not want Line Numbers, then remove the component from the EdiorKit
configuration.
Original comment by ayman.al...@gmail.com
on 12 Mar 2009 at 11:32
Ah, thanks. I thought I had it removed, but only later realized my config was
outdated, too.
Original comment by peter.arrenbrecht
on 12 Mar 2009 at 12:34
Please add this patch or make sure you don't assume there is a parent. This bug
causes
issues in code you cannot alter, e.g. in a swing application that uses
JEditorPane for
syntax highlighting combined with e.g. JXErrorPane that uses JEditorPane as
well. We
cannot patch all other Java libraries to make sure they assign a parent before
calling
setContentType.
Original comment by rjako...@googlemail.com
on 25 Dec 2009 at 11:29
Did you try that patch? I recall getting some other errors later, as stated in
my
earlier comment.
Original comment by ayman.al...@gmail.com
on 28 Dec 2009 at 6:12
Issue 140 has been merged into this issue.
Original comment by ayman.al...@gmail.com
on 1 Apr 2010 at 4:53
Original issue reported on code.google.com by
peter.arrenbrecht
on 12 Mar 2009 at 9:24