Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hyperliknks in swing  RSS feed

 
vinoth ramanathan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am developing an desktop application. I want to have Hyper link in my panel so that it directs the user to another frame/panel. Is it possible to do in swings.


vinoth
 
Miklos Szeles
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vinoth,

You can implement hyperlink in different ways using a JLabel or a JButton. Then you simply handle the click event and do whatever you want. There are implementation advices in this forum. Please search for them.
 
Campbell Ritchie
Marshal
Posts: 55747
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to JavaRanch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!