Hi,
I have made an applet that draws a moving 'ball' onto the screen. It does this in a loop in the paint() method of the applet. Now I want to stop the loop when a button is pressed. The program however does not notice when I press the button because it is in the loop.
Does someone know if there is some method to 'listen' for events during a loop?
Thanx
Diederik
I have made an applet that draws a moving 'ball' onto the screen. It does this in a loop in the paint() method of the applet. Now I want to stop the loop when a button is pressed. The program however does not notice when I press the button because it is in the loop.
Does someone know if there is some method to 'listen' for events during a loop?
Thanx
Diederik