to remove all the components in a container, get a reference to the container and call the removeAll() method:
refToContainer.removeAll();
To remove a specific component:...
Type: Posts; User: Norm
to remove all the components in a container, get a reference to the container and call the removeAll() method:
refToContainer.removeAll();
To remove a specific component:...
Container is a java SE class. See the API doc:
Java Platform SE 6
One way would be to use the Container class's remove and add methods.
Another would be to use CardLayout.