Friday, August 12, 2005

BB : Getting selected RadioButton option

RadioButtonGroup rbg = new RadioButtonGroup ();
rbA = new RadioButtonField ("A", rbg, true); // Selected by default
rbB = new RadioButtonField ("B", rbg, false);
add (rbA);
add (rbB);

boolean isA = rbA.isSelected ();

Enjoy!

(Blackberry)

No comments: