Forum Moderators: open

Message Too Old, No Replies

Clickable URL link in Java applet

How to accomplish?

         

adb64

10:23 am on Mar 9, 2005 (gmt 0)

10+ Year Member



Hello all,

I couldn't find a Java (not Javascript) specific forum, so I will post my question here.

What I want in a Java applet is a clickable link which will take the viewer to another webpage. Something comparable with the HTML tag:

<a href="http://www.mysite.com/">Click This</a>

How can I accomplish this?
Another question, is it also possible to open it in a new browser window (like adding '

target="_blank"
' to the '
a
' tag)?

Thanks,
Arjan

tedster

8:04 pm on Mar 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's a reference from codebrain, that goes into links and targets in a java applet:

[codebrain.com...]

adb64

8:32 pm on Mar 9, 2005 (gmt 0)

10+ Year Member



tedster,

thanks, this solves how to get the link into the applet, but not how to make it clickable and work in a line of text displayed by the applet.

Arjan