Comment on page
A radio group is a group of Radios (
RadioButton). It allows a user to select at most one radio from a set. Checking one RadioButton that belongs to a radio group unchecks any previous checked radio button within the same group.
// Creating a RadioGroup
RadioGroupController radioGroup = new RadioGroupController();
// Assigning RadioButtons to the RadioGroup
Radio radio = new Radio("RadioButton", radioGroup);
add(radio, LEFT+100, AFTER+100 ,PREFERRED+100,PREFERRED+25);