// Add some radio buttons to a group called 'sport'
String[] sports = constants.cwRadioButtonSports();
for (int i = 0; i < sports.length; i++) {
String sport = sports[i];
RadioButton radioButton = new RadioButton("sport", sport);
radioButton.ensureDebugId("cwRadioButton-sport-"
+ sport.replaceAll(" ", ""));
if (i == 2) {
radioButton.setValue(true);
}
vPanel.add(radioButton);