static void disposeInternalFrame(Component c) { final JInternalFrame f = getInternalFrame(c); if (f != null) swing { f.dispose(); setOpt(f, lastFocusOwner := null); // Help GC } }