What happens if you add the same component to a container more than once? I assume it will display properly, but what about calls to remove(Component)? Is the behavior of remove(Component) implementation specific, or is there some general expected behavior between all the different core LayoutManagers? Micah
posted 15 years ago
First of all, if you add the same component twice in the same container, it will display only the last component added. Also when remove(Component) is called, the last of the components that was added will be removed, in this case the component which was added second time.