Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hyperlink in an applet  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I create a hyperlink on text in an applet.
Thanx
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and actually use the _self tag instead
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!