I am writing a Java application, and I have four radio buttons, call them rb1, rb2, rb3, and rb4. I've added two of them to one radiobutton group, and the other two to a second radio buttongroup. Then I added all four of them to a panel. Distinct action listeners are defined for all four buttons.
However, when I click on the first button in one group it fires its own action listener and the one for the second button in the other group. That button that incorrectly fires won't fire at all when I click on it.
I can only suspect that they shouldn't all be in one panel, but that seems a bit strained as an explanation. Any ideas?
Thanks in advance for any help.
John Doner