标签: java swing radio-button
假设我在面板1和2中有按钮A和B,如下所示。如果只能在一个面板中选择一个按钮,如何对只能选择一个A和一个B的按钮进行分组?
1 2
A A
B B