I am a student doing my final year project and I am having a problem with
the animation that I have. I have used paint (Graphics g) to create the animation
that I wish to be displayed and when i try to form a loop so when I press
a play button the animation will run, It does not repaint the graphics at
each step, it will only repaint the last value. I have put in print statements
in all the methods and they are working correctly. I am using repaint() to
call the paint(Graphics g). It also works fine when i press the button for
each step. I just can get the play to work. can anyone help me ???????? please.

Is there a way that I can force the repaint() to call the paint (graphics
g) every time in the loop???