I am attempting to have four jradiobuttons that are all connected. There are two teams that each have the option of left or right. A team should only have one of the options selected, while at the same time the team's should not have the same option selected (ie. Both left or both right). I tried using four jradiobutton groups, placing the buttons for the team in a group as well as having the lefts in a group and the rights in a group.
For example, if I have four JRadioButtons A,B,C,D,
A B
C D
I need A and B to be grouped, C and D to be grouped, A and C to be grouped, and B and D to be grouped, so that the only possible combinations are A and D being selected, or B and C.