> Isn't it generally a bad idea to keep calling repaint()?
No, that is generally what animation loops do: update component states and call repaint() to refresh them on the screen. If by "keep calling" you mean without any pause, then no, you usually want to sleep for some period of time so that other processes are getting a fair chance to run as well.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847