static bool internalFrameFocussed(Component c) { final JInternalFrame f = getInternalFrame(c); ret f != null && swing(func -> bool { f.getFocusOwner() != null }); }