It's not a secret anymore!
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Clicking on HyperLink" Watch "Clicking on HyperLink" New topic

Clicking on HyperLink


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?
Julia Reynolds
Ranch Hand

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

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . 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.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Clicking on HyperLink
jQuery in Action, 3rd edition