你的触发组件的监听 public void actionPerformed(ActionEvent e){if(jrbBox.isSelected()){System.out.println("你选择了:"+jrbBox.getText());}if(jrbGirl .isSelected()){System.out.println("你选择了:"+jrbGirl .getText());}