I see several problems:
Uses many old methods that are deprecated
There are calls to repaint() from inside the paint() method. Use a timer loop to call repaint.
For double buffering (reduces...