• Post Reply Bookmark Topic Watch Topic
  • New Topic

JEditorPane and finding the page to load  RSS feed

 
K. Tsang
Bartender
Posts: 3639
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!