Declare the check box objects as an array like
Get the no.of users and pass them to the constructor of the class and in that constructor instatiate the checkboxes like
readwrite = new JChechBox[noofusers];
readwrite[i] = new JCheckBox("Yes", false);
Hope its helpful.