Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JEditorPane and finding the page to load

 
K. Tsang
Bartender
Posts: 3585
16
Android Java
  • 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