selectedItems[elementNum] = selected; items[elementNum].setImage(imgRadioOn);
  public void setSelectedIndex(int elementNum, boolean selected)  {		if (elementNum < 0 || elementNum >= numOfItems) {			throw new IndexOutOfBoundsException();		}		if (choiceType == Choice.EXCLUSIVE && selected) {			for (int i = 0; i < numOfItems; i++) {				selectedItems[i] = false;				items[i].setImage(imgRadioOff);			}			selectedItems[elementNum] = selected;			items[elementNum].setImage(imgRadioOn);			repaint();		} else if (choiceType == Choice.MULTIPLE) {			selectedItems[elementNum] = selected;			if (selected) {				items[elementNum].setImage(imgMultiOn);			} else {				items[elementNum].setImage(imgMultiOff);			}			repaint();		}  }