static Window addToWindowPack_keepWidth(Component c, Component toAdd) { int w = getWindow(c).getWidth(); addToWindowAndPack(c, toAdd); w.setWidth(w); ret w; }