wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Question about hyperlink... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Question about hyperlink..." Watch "Question about hyperlink..." New topic
Author

Question about hyperlink...

seema prakash
Ranch Hand

Joined: Nov 17, 2004
Posts: 59
I have loaded a HTML file into JEditorPane.
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(new window). But, if I click
on the hyperlink it opens the page into the JEditorPane itself.

I tried using the hyperlink html anchor tag which includes this attribute:
target="_blank". It should launch in its own window.But, it
does not work. How do I make it work? Please help
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Question about hyperlink...