• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating url links inside a Swing applet?

 
Carina Svensson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I wonder if it's possible to create url links inside a Swing applet? I want the links to look like true url links (not like a button). When clicking on an url link, a new window should be opened containing the containt for that page.
Do you have any suggestions?
Thanks in advance!
Carina
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JEditorPane can display html and handle "link" events. see the API and the swing tutorial for more information how to use it.
cheers
 
Carina Svensson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
I will do that.
Carina
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!