1. Never call setBackground(...) or otherwise change the state of any component in a painting method override.
2. Instead of a Thread with an infinite loop and a sleep(...) it's better you use a javax.swing.Timer. That's what the class is meant for.
There are no new questions, but there may be new answers.
Joined: Jul 22, 2011
Thanks. I've moved the setBackground out of the paint function. What is wrong with a thread with an infinite loop? Still jumping so I assume it is because of this thread?