File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Clicking on HyperLink