Fantastic reply, thanks for all your help. It seems so obvious now.
Thanks again M
Type: Posts; User: mycallsevern
Fantastic reply, thanks for all your help. It seems so obvious now.
Thanks again M
Firstly I am very sorry for not putting my code in the appropriate tags, poor form on my behalf :(
In terms of moving the MouseListener outside the paintComponent, I tried this but got the error...
Hi there,
I am writing a basic GUI that has a circle in it and when you click the circle it cycles through a choice of 4 colours.
I have written a class that extends JPanel and uses...