public Component findByName(String name,Component rootComponent){
  Component c=(Component)rootComponent.getClientProperty("%" + name + "%");
  if (c == null) {
    Container newRoot=getRootAncestor(rootComponent);
    if (newRoot != null && rootComponent != newRoot) {
      return findByName(name,newRoot);
    }
  }
  return c;
}

public Component findByName ( String name , Component rootComponent ) { Component c = ( Component ) rootComponent . getClientProperty ( "%" + name + "%" ) ; if ( c == null ) { Container newRoot = getRootAncestor ( rootComponent ) ; if ( newRoot != null && rootComponent != newRoot ) { return findByName ( name , newRoot ) ; } } return c ; }
finds the given component by its name
