public Window getWindowAncestor(Component comp)
public static Window getWindowAncestor(Component comp)
  public Window getWindowAncestor(Component comp)  {    return (Window) getAncestorOfClass(Window.class, comp);  }