static A centerPackInternalFrameWithMinSize(int w, int h, A c) { JInternalFrame win = getInternalFrame(c); if (win == null || getParent(win) == null) ret c; swing { win.pack(); minFrameSize(win, w, h); centerInternalFrame(win); fixInternalFrame(win); } ret c; }