I have around 200 hundred checkboxes in a Java GUI. Now I want to have the list of all checkboxes that have been checked by the user.
I can do it in one way like this:
jCheckBox1.isSelected();
But I don't want to write this line for 200 checkboxes. Is there any way to do this through a for loop.
all the checkboxes have the name like jCheckBox1, jCheckBox2, jCheckBox3, jCheckBox4 ... jCheckBox200