Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a link (hypertext) on canvas...

 
Kruger Brent
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to have a word of a sentence drawn on canvas, to be hypertext(link)? If yes, how to differentiate the hypertext word from other words when mouse is moved over?
KB
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have to add this functionality yourself... you would need to add a MouseListener to the canvas, and get MouseEvents that were over the co-ordinates of the link that you have painted on the canvas...

HTH,
-Nate
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic