I have a list of checkboxes that I would like to disable. Instead of typing
c1.setEnabled(false);
c2.setEnabled(false);
c3.setEnabled(false);
c4.setEnabled(false);
c5.setEnabled(false);
How could I trim this code by putting them in some group? I have the same problem in many of my codes, but with different components. Thanks
source
share