If you look at the JavaDocs for the remove function you will see that when a component is removed it must be validated. After the validation you should do a repaint. Another way of doing it is just...