if ( comp instanceof XRadioButtonGroup ) {
XRadioButtonGroup rb = ((XRadioButtonGroup)comp);
if ( checkBoxGroup == null ) {
// The radio button may already have a group
if ( rb.getRadioButtonGroup() == null )
checkBoxGroup = rb.createGroup();
else
checkBoxGroup = rb.getRadioButtonGroup();
}
else
rb.setRadioButtonGroup( checkBoxGroup );