> void setPaused(boolean p) {
>paused = p;
You should declare paused as volatile, i.e.,
private volatile boolean paused;
as you will likely set and clear it from the event dispatch thread and check its value from your various other game playing threads.
> ...
> You should declare paused as volatile, i.e.,
>
> private volatile boolean paused;
>
> as you will likely set and clear it from the event dispatch
> thread and check its value from your various other
> game playing threads.
Sorry, I shoul've used sarcasm-tags instead of code-tags in my post.
; )