you should use the following methods carefully.
-add(Component c)
-remove(Component c)
- doLayout()
- validate()
get sure that you call the "doLayout()" and
"validate()" methods of your container every time you
make a change in by adding and removing a component to
your container.