Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hyperlinks without URL

 
balu gates
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I need to have hyperlinks on JTextpanes
and they don't have any standard URL
I need a hyperlink facility as that is available
in the JAVAHelp API
bye
 
Michael Szul
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaHelp API uses url base hyperlinks, I believe. The only difference is that they point to the local file system instead of the internet.
Your best bet would be to construct a url using getClass().getResource("your_file.html").
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic