ImageTarget checked = new ImageTarget(Images.CheckedCheckbox);
// create an image target based on an image of an unchecked checkbox
ImageTarget unchecked = new ImageTarget(Images.UncheckedCheckbox);
// create a multi-state target to look for checkboxes
MultiStateTarget target = new MultiStateTarget();
// add the "checked" state specified by the image target of a checked checkbox
target.addState(checked, "checked");
// add the "unchecked" state specified by the image target of an unchecked checkbox
target.addState(unchecked, "unchecked");
// find all the checkboxes, both checked and unchecked
List<ScreenRegion> checkboxes = s.findAll(target);
for (ScreenRegion c : checkboxes){
// get the state of each checkbox