wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes JEditorPane and finding the page to load Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "JEditorPane and finding the page to load" Watch "JEditorPane and finding the page to load" New topic

JEditorPane and finding the page to load

K. Tsang

Joined: Sep 13, 2007
Posts: 2231

Hi all, I have a question about JEditorPane's setPage method. JEditorPane has setPage(String) and setPage(URL) methods.

I'm trying to load my html user guide inside my app as help. I have no problem with the setPage(URL) method when my page is online. If my page is offline (like inside the runme.jar) how to set the setPage(String) method to find the page?

I tried doing editorPane.setPage("userguide.html") which gives me "can not find the file" error. Any ideas?

I agree. Here's the link: http://aspose.com/file-tools
subject: JEditorPane and finding the page to load
Similar Threads
Question about help file ,
set userid in HTTP Request - URLStreamHandler, JEditorPane
Displaying a HTML file from a local file system(relative path) using JEditorPane?
Question about package