• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hyperlink in an applet

 
Carrie Laufer
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
 
Frank Carver
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.
 
Emil Karlsson
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
 
Maulin Vasavada
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
 
Nicholas Turner
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and actually use the _self tag instead
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic