Add repaint() after click