About JEditorPane  
Author Message
Prabo





PostPosted: 2006-3-1 17:49:00 Top

java-programmer, About JEditorPane I wrote a plugin to NetBeans 5.0 which displays html pages in a
JEditorPane, when i clicked a file in explorer.
JEditorPane is in the topcomponent class.Also JTree(Explorer) in a
other topcomponent class.
I use setPage(URL url) method. But its not working properly.That means
the editor pane displays the html code of the file
But i wrote it as standalone application, it displays correctly.
Explain what is the problem here.

 
zero





PostPosted: 2006-3-2 5:59:00 Top

java-programmer >> About JEditorPane "Prabo" <email***@***.com> wrote in news:1141206530.748306.134570
@i39g2000cwa.googlegroups.com:

> I wrote a plugin to NetBeans 5.0 which displays html pages in a
> JEditorPane, when i clicked a file in explorer.
> JEditorPane is in the topcomponent class.Also JTree(Explorer) in a
> other topcomponent class.
> I use setPage(URL url) method. But its not working properly.That means
> the editor pane displays the html code of the file
> But i wrote it as standalone application, it displays correctly.
> Explain what is the problem here.
>
>

looks like your content type is set wrong.
Try JEditorPane:setContentType("text/html")