tuliob / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

JEditorPane.setPage(url) do not provide a highlight text. #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem ?
1. I follow the getting started guide
2. I call myJEditorPaneObj.setPage(an_url_object)
3. Display is right but without syntax highlight, completion, ...

What is the expected output? What do you see instead?
I expected to get an editor with syntax highlight

What version of the product are you using? On what operating system?
0.9.5.b17

Please provide any additional information below.

Original issue reported on code.google.com by ouaib...@gmail.com on 21 Apr 2009 at 4:27

GoogleCodeExporter commented 9 years ago
The problem with setPage, is that it seems to discard all the settings of the
JEditorPane, including content-type.  setPage seems to be meant to load pages 
from a
network connection, it creates a new Thread and does all sorts of stuff.  So it 
will
probably not work.
You'll need to either use setText (if it's short), or better call the read 
method.
See the SyntaxTester for details.
I'll close this later, but I'd like to hear how you work-around it.

Original comment by ayman.al...@gmail.com on 22 Apr 2009 at 6:14

GoogleCodeExporter commented 9 years ago
no news.  I'll close this issue.

Original comment by ayman.al...@gmail.com on 28 Sep 2009 at 5:23