posted 9 years ago
The above code makes a frame,puts a button and a circle on the frame,everything runs fine but i do not understand one thing,i hava enclosed the code for playing sound and repaint() method in a for loop that iterates five times,when i click the button the sound plays 5 times but the color of the of the circle changes only once per click although call to repaint() method is enclosed in the same loop.Can anyone please tell me why it is behaving that way.