private void setCheckboxes(int right, JCheckBox cr, JCheckBox cw, JCheckBox cx) {
		switch (right) {
		case 0:
			cx.setSelected(false);
			cw.setSelected(false);
			cr.setSelected(false);
			break;
		case 1:
			cx.setSelected(true);
			cw.setSelected(false);
			cr.setSelected(false);
			break;
		case 2:
			cx.setSelected(false);
			cw.setSelected(true);
			cr.setSelected(false);
			break;
		case 3:
			cx.setSelected(true);
			cw.setSelected(true);
			cr.setSelected(false);
			break;
		case 4:
			cx.setSelected(false);
			cw.setSelected(false);
			cr.setSelected(true);
			break;
		case 5:
			cx.setSelected(true);
			cw.setSelected(false);
			cr.setSelected(true);
			break;
		case 6:
			cx.setSelected(false);
			cw.setSelected(true);
			cr.setSelected(true);
			break;
		case 7:
			cx.setSelected(true);
			cw.setSelected(true);
			cr.setSelected(true);
			break;
		}
	}