>how to add text link in applet or java app?
A link-like component can be made by adding a
MouseListener to a (J)Label.
In an application (or applet) launched using Java
web start (JWS), the BasicService.showDocument(URL) *
method can be used to open the user's default browser,
pointing to the URL.
* e.g. <http://www.physci.org/jws/> (see the 'BasicService'
example at the top.)
If the app. is not being launched using web start,
the options include.
1) For an applet, the AppletContext.showDocument().
But note that browsers do not have to implement it,
and there is no feedback.
2) For an application or signed applet, BrowserLauncher2.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
"JTL.zheng" <jtl.zheng@gmail.com> wrote in news:1181573021.900980.292250
@j4g2000prf.googlegroups.com:
> how to add text link in applet or java app?
For AWT Applet, try my URLLabel component.
http://www.rgagnon.com/javadetails/java-0273.html
Bye.

Signature
Real Gagnon from Quebec, Canada
* Java, Javascript, VBScript and PowerBuilder code snippets
* http://www.rgagnon.com/howto.html
* http://www.rgagnon.com/bigindex.html
JTL.zheng - 12 Jun 2007 16:51 GMT
Thanks to all of you.
It works..: )