This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes hyperlinks without URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "hyperlinks without URL" Watch "hyperlinks without URL" New topic

hyperlinks without URL

balu gates

Joined: Jan 05, 2001
Posts: 16
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
Michael Szul
Ranch Hand

Joined: Sep 18, 2001
Posts: 57
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").
I agree. Here's the link:
subject: hyperlinks without URL
It's not a secret anymore!