In my program, I have 12 different toggle buttons that will need to be reset at the same time. Instead of writing
buttonOne.setText("");
buttonOne.setSelected(false);
buttonOne.setEnabled(true);
over and over for 12 different toggle buttons, is there a way to do this in a method by passing parameters? I've only recently started java and i've never used parameter declarations that aren't strings or ints, so I was not sure if there would be a way to do it with a toggle button.