Repaint cannot called outside a panel.