I have a JPanel with 5 JCheckBox on it. What I'd like to do is count how many of them are selected and create a collection out of them so I can iterate through them without using if (JCheckBox.isSelected()) { do something... }.
Is this possible or am I just dreaming?
~DewBoy3d