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