Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MouseClick on Label

I am trying to register a click on a label, but i can't get it to work.

So far I've tried to set the SelectionAdapter to the label but click-events aren't fired.

like image 998
Fabian Zeindl Avatar asked Dec 22 '22 04:12

Fabian Zeindl


1 Answers

Labels are not selectable Controls SelectionAdapter won't work for it. Try adding a MouseListener.

like image 159
Gorkem Ercan Avatar answered Dec 27 '22 01:12

Gorkem Ercan