public static JRootPane getRootPane (Component a)
public static JRootPane getRootPane(Component comp)
  public static JRootPane getRootPane (Component a)  {    if (a instanceof JRootPane)      return (JRootPane) a;	    a = a.getParent();    if (a != null)      {        return getRootPane(a);      }        return null;  }