• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hyperlink in swings  RSS feed

 
Hamsagayathri Palanisamy
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have created JTable in Swings.I would like to make the contents in that JTable as "hyperlink". I have generated JTable as follows.

I want all the values in the JTable as "Hyperlink" text..
How this can be achieved?



-Thanks & Regards,
Hamsa
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are various ways of approaching this, depending on what you want to happen if the links are clicked. Is there a real URL behind it that should be opened in a web browser, or do you want to handle the click in the Swing app?
 
Steven Wall
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are allowed to use third party libraries, you could also consider using the JXHyperlink class that is part of the Swingx library at Swing Labs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!