//create a new set of radio buttons in a group
RadioButtonGroup rgrp = new RadioButtonGroup();
//new radio to the group
RadioButtonField radio = new RadioButtonField("Radio Button 1", rgrp, true);
add(radio);
//another radio to the group
RadioButtonField radio2 = new RadioButtonField("Radio Button 2", rgrp, false);
add(radio2);
RadioButtonGroup rgrp = new RadioButtonGroup();
//new radio to the group
RadioButtonField radio = new RadioButtonField("Radio Button 1", rgrp, true);
add(radio);
//another radio to the group
RadioButtonField radio2 = new RadioButtonField("Radio Button 2", rgrp, false);
add(radio2);
Download Project Source
No comments:
Post a Comment