On top of what dlorde said, the reason things are running so slowly is that you're blocking the EDT by sleeping from your paint method, which is called by the EDT. The EDT controls things like events...