static void disposeInternalFrame(Component c) { final JInternalFrame f = getInternalFrame(c); if (f != null) swing { f.dispose(); } }