code would be more helpful than your stack backtrace...
do you perhaps call repaint() a lot? if so, try update() instead