I have a short question for you. I have 2 checkboxes and I want to: when is the active one, the other should be off. Tks in advance!
Asked
Active
Viewed 43 times
-5
-
1You might want to use `JRadioButton` instead – Bajal May 19 '16 at 18:40
-
You should use JRadioButtons if you want an either / or selection. – Gilbert Le Blanc May 19 '16 at 18:40
-
The design does not allow me... I need to do with checkbox – J.Doe May 19 '16 at 18:46
-
Visit duplicate question (you may need to refresh this page to see it). Accepted answer there works also for `JCheckBox`. – Pshemo May 19 '16 at 18:47
-
It's a different question! – J.Doe May 19 '16 at 18:57
-
and I expect another answer – J.Doe May 19 '16 at 18:57
-
@Norris29 This question is marked as a duplicate, so nobody can post an answer anymore. The only thing that is different from your question is the `JToggleButton` subclass being used. `ButtonGroup` will work for any `AbstractButton`s, so the answer would essentially be the same. – Lukas Rotter May 19 '16 at 19:04
-
Ok . I appreciate your involvement! – J.Doe May 19 '16 at 19:06