I am trying to create a link-like label in scala. But no mouse events work for me. How should they work?
class Hyperlink extends Label{ text = "hyperlink" reactions += { case MouseClicked(_,_,_,_,_) => println("mouse clicked")}}
I put this on some panel and click on the shortcut like a pro minesweeper player ... and nothing is displayed in the console. Why?
scala swing mouseevent
coubeatczech
source share