Hey guys, I'm having an issue setting the JCheckBox so that only one of the options can be selected. I made it so that only one can get selected, that works. But let's say if someone wanted to change there mind and switch to the other option, it won't allow them to do so.
The loop that creates every JCheckBox object and adds them to the array list:
This is the part that I worked on to set the selection to only one of them:
If you want further detail it works like this:
~ If I select "public" (accesMod.get(0)), "private" is already unchecked.
~ I have to uncheck "public" in order to check "private"
~ I can't select two at once
~ I CAN switch from "private" to "public" perfectly without having to uncheck anything?