• Post Reply Bookmark Topic Watch Topic
  • New Topic

JLable as hyperlink  RSS feed

 
Sue Meng
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did search for similar topic.
I have Jlable called about and want that to work as a hyperlink. so tried this.


It does look like link but the cursor doesnt change (hand cursor).
I know I can set the cursor using setcursor method but shouldnt it change by default as its a hyperlink?
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try this one ?

http://www.java2s.com/Code/Java/Swing-Components/LinkButton.htm
 
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!