ButtonGroup g = new ButtonGroup();JRadioButton rB_1 = new JRadioButton("a");JRadioButton rB_2 = new JRadioButton("b");JRadioButton rB_3 = new JRadioButton("c");// usw...g.add(rb_1);g.add(rb_2);g.add(rb_3);void myAbfrage() { for(int i=0; i<g.getButtonCount(); i++) { if(rB_1.isSelected()) { System.out.println(" RadioButton 1 selected"); break; } if(rB_2.isSelected()) { System.out.println(" RadioButton 2 selected"); break; } if(rB_3.isSelected()) { System.out.println(" RadioButton 3 selected"); break; } //usw. }}