This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Clicking on HyperLink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Clicking on HyperLink" Watch "Clicking on HyperLink" New topic
Author

Clicking on HyperLink

contactdeena
Greenhorn

Joined: Jun 13, 2001
Posts: 1
Hi Folks,
I want some help. I have loaded a HTML file into JEditorPane.
When I click on a hyperlink in the HTML page, that particular link should be invoked in the browser. How do I do that?
-regards
deena
Julia Reynolds
Ranch Hand

Joined: May 31, 2001
Posts: 123
If the hyperlink html anchor tag includes this attribute:
target="_blank"
It should launch in its own window.
Julia
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"contactdeena",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Clicking on HyperLink
 
Similar Threads
Question about hyperlink...
Java HyperLink
hyperlink in an applet
Getting no effect of " \n" while using setContent()
Preventing anchor tag submit