*
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 Android Security Essentials Live Lessons this week in the Android 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
Author

JEditorPane and finding the page to load

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2242
    
    7

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
 
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 ,
JEditPane
set userid in HTTP Request - URLStreamHandler, JEditorPane
Displaying a HTML file from a local file system(relative path) using JEditorPane?
Question about package