> You should not sleep in the paint method since it is
> called by the thread that is responsible for
> painting. You should instead create another thread
> that sleeps and calls repaint.
Seperate the model from the view and it gets repainted automatically when it was changed... as long as you don't need a *very* exact timing, there shouldn't be a need to call repaint. Just wait for the next cycle.
> Seperate the model from the view and it gets
> repainted automatically when it was changed... as
> long as you don't need a *very* exact timing, there
> shouldn't be a need to call repaint. Just wait for
> the next cycle.
I might be wrong here, but I thought we were talking about creating animations :)