static bool mouseInWindow(Component c) { Window w = getWindow(c); ret w != null && w.isShowing() && boundsOnScreen(w).contains(mousePosition()); }