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