void (final FormSpec.DefaultAlignment defaultAlignment) { if (defaultAlignment.equals(RowSpec.TOP) || defaultAlignment.equals(ColumnSpec.LEFT)) { myLeftRadioButton.setSelected(true); } else if (defaultAlignment.equals(RowSpec.CENTER)) { myCenterRadioButton.setSelected(true); } else if (defaultAlignment.equals(RowSpec.BOTTOM) || defaultAlignment.equals(ColumnSpec.RIGHT)) { myRightRadioButton.setSelected(true); } else { myFillRadioButton.setSelected(true); } }