Non basta un repaint del contenitore:

codice:
panel.doLayout();
panel.validate();
panel.repaint();
Ciao.