The way to clear a JCheckBox is to setSelected(false). To clear a number of checkboxes, you would do that for each one, either individually, or, if they have been added to an array or List, in a loop.
luck, db
There are no new questions, but there may be new answers.
It does nothing because you're not calling setSelected(...) of the JCheckBoxes in your GUI, but rather of new instances that aren't seen anywhere, and go out of scope immediately thereafter.
luck, db
There are no new questions, but there may be new answers.
Okay so I added a new reset function and I believe it works - I also added a way to save and load a beatbox pattern
It compiles fine but the "Load Pattern" and "Save" buttons don't show up and there is only one checkbox instead of 256(16 X 16)
I am lost on how to solve this
If I click on the one checkbox that appears it plays all the sounds and when I click reset it clears the one checkbox - so the reset seems to be working
What sort of layout are you using to set the locations of your check boxes? It sounds as though you have got a problem with the layout.
Added later:
Franklin Marquette wrote: . . . there is only one checkbox instead of 256(16 X 16)
. . .
If I click on the one checkbox that appears it plays all the sounds and when I click reset it clears the one checkbox - so the reset seems to be working
. . .
That sounds as though you have all 256 in the same location.