void () { if (myLayout == null || myShowing) return; mySaving = true; try { Size size = getSelectedSize(); final SpinnerNumberModel model = (SpinnerNumberModel)myGrowSpinner.getModel(); double resizeWeight = myGrowCheckBox.isSelected() ? model.getNumber().doubleValue() : 0.0; FormSpec.DefaultAlignment alignment = getSelectedAlignment(); if (myIsRow) { myLayout.setRowSpec(myIndex, new RowSpec(alignment, size, resizeWeight)); } else { myLayout.setColumnSpec(myIndex, new ColumnSpec(alignment, size, resizeWeight)); } for (ChangeListener listener : myListeners) { listener.stateChanged(new ChangeEvent(this)); } } finally { mySaving = false; } }