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