File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 1953

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?

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