aspose file tools*
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
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
Author

JEditorPane and finding the page to load

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2584
    
    9

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 OCPJP7 OCPWCD5 OCPBCD5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JEditorPane and finding the page to load