static bool mouseInFrame(Component c) { JFrame f = getFrame(c); ret f != null && boundsOnScreen(f).contains(mousePosition()); }