static A packWindow(final A c) { swing { Window w = getWindow(c); if (w != null) w.pack(); } ret c; }