以true、false单选按钮组为例:
class="java">String enable="false";
Enumeration<AbstractButton> radioBtns=getButtonGroup().getElements();
while (radioBtns.hasMoreElements()) {
AbstractButton btn = radioBtns.nextElement();
if(btn.isSelected()){
enable=btn.getText();
break;
}
}
?