aspose file tools*
The moose likes Applets and the fly likes hyperlink in an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "hyperlink in an applet" Watch "hyperlink in an applet" New topic
Author

hyperlink in an applet

Carrie Laufer
Greenhorn

Joined: May 18, 2003
Posts: 1
How do I create a hyperlink on text in an applet.
Thanx
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I can't help thinking this is much more likely to get a sensible reply in the Applets forum, so I've moved it for you.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Emil Karlsson
Ranch Hand

Joined: May 23, 2002
Posts: 63
Hi,
Maybe this will help.
When you call a URL from an applet you must call it throw a webserver with http:// or some other protocoll.

/Emil
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
of course Emil's suggestion is right but if u really want to make the text look like Hyperlink u've to ,
1. create a label
2. make it underlined
3. make it changing color on mouse over
4. call the method where u'll write what Emil suggested on onMouseClick event (i dont remember exactly what even u would need but i'm suggesting that it should work like Hyperlink u know)..so u'll need to have MouseListener...
hope this is what u r lookin for
regards
maulin
Nicholas Turner
Ranch Hand

Joined: May 24, 2003
Posts: 126
and actually use the _self tag instead
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hyperlink in an applet