The most obvious way would be to create a constructor for CircleClicker and put the statement to add the mouse listener in there. I don't know of any way to add a mouse listener by overriding...
Type: Posts; User: aussiemcgr
The most obvious way would be to create a constructor for CircleClicker and put the statement to add the mouse listener in there. I don't know of any way to add a mouse listener by overriding...
Question: Why is your mouse listener inside of your paintComponent method?