private JRadioButton addRadioButton(String text,Container container,int leftIndent){
  JRadioButton radioButton=new JRadioButton(text);
  radioButton.setAlignmentX(Component.LEFT_ALIGNMENT);
  radioButton.setBorder(BorderFactory.createEmptyBorder(0,leftIndent,7,5));
  container.add(radioButton);
  return radioButton;
}

private JRadioButton addRadioButton ( String text , Container container , int leftIndent ) { JRadioButton radioButton = new JRadioButton ( text ) ; radioButton . setAlignmentX ( Component . LEFT_ALIGNMENT ) ; radioButton . setBorder ( BorderFactory . createEmptyBorder ( 0 , leftIndent , 7 , 5 ) ) ; container . add ( radioButton ) ; return radioButton ; }
adds a preconfigured radio button to the specified container . does not currently assign the radio button to a group .
