static A packInternalFrame(final A c) { swing { JInternalFrame w = getInternalFrame(c); if (w != null) { w.pack(); fixInternalFrame(w); } } ret c; }