// Special handling for radio buttons
// For the first rb create a group
// For subsequent rbs add them to the group
// If another type of component is found reset the groups
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 );
}
else
checkBoxGroup = null;
// Now customize the component