wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "hyperlinks without URL" Watch "hyperlinks without URL" New topic
Author

hyperlinks without URL

balu gates
Greenhorn

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

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").
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: hyperlinks without URL
 
Similar Threads
Help Docs
Extracting hyperlinks in a HTML page
How to make an image to appear and fade gradually when a web page is opened?
online help document problem
Browser is out of hyperlinks