The easiest and best way to get which JRadioButton got selected is to place them in a ButtonGroup object. This way, a group of JRadioButtons can be isolated from other group(s) of JRadioButtons and can easily be accessed.

The method below does the trick.

Related Posts Plugin for WordPress, Blogger...