code: public Container getTargetScreen(Container component, Class<?> targetClass)
      {
          Container container = this.getTargetScreen(component, targetClass, true);
          if (container == null)
              if (component instanceof JBasePanel)
                  if (component != this)  // Special case, need to look from the component up, not from this up.
                      return ((JBasePanel)component).getTargetScreen(component, targetClass, true);
          return container;
      }
docs: Climb up through the panel hierarchy until you find a component of this class.
  @param component The (non-inclusive) component to start climbing up to find this class.
  @param targetClass The class type to find (or inherited).
  @return The first parent up the tree to match this class (or null).