Hi!
I have a java application with multiple buttons.When pressed,every button shows a different painting.One of the button is supposed to display a moving ball.The problem is,the repinat() event does not work and the ball moves but it is only possible to see it's movement when the button is pressed again. I'm working with a Frame.Why doesn't the repaint() event work?