I’m using Java 1.3.1 and Swing for my swing application which has radio buttons. In the ButtonGroup, when I perform getSelection() to return ButtonModel, I get unpredictable results with getActionCommand. I perform Enumeration with getElements(). But I have to loop through each button just to check which JRadioButton is selected. Can anyone tell me is there an easy way to do this?