public synchronized Panel removeAllComponents(){
  for (  Component component : new ArrayList<Component>(components)) {
    removeComponent(component);
  }
  return this;
}

public synchronized Panel removeAllComponents ( ) { for ( Component component : new ArrayList < Component > ( components ) ) { removeComponent ( component ) ; } return this ; }
removes all child components from this panel
