Use update() instead of repaint() for busy progressbars.