初次使用java提供的JRadioButton,没有经验,不知道还要用到ButtonGroup。ButtonGroup可以将几个JRadioButton归为一组,同一时间只能选中该组的一个成员。