repaint();
  public void delete(int itemNum)  {		if (itemNum < 0 || itemNum >= numOfItems) {			throw new IndexOutOfBoundsException();		}    // Ensure that an item of an EXCLUSIVE list remains selected.    if (Choice.EXCLUSIVE == choiceType && items[itemNum].isSelected()) {      if (numOfItems > 1) {        items[itemNum!=0 ? 0 : 1].setSelectedState(true);      }    }    // Delete item.    if (itemNum != numOfItems - 1) {      System.arraycopy(items, itemNum+1, items, itemNum, numOfItems-itemNum-1);    }    numOfItems--;    // Ensure highlighted item remains highlighted (if it wasn't just deleted).    if (highlightedItemIndex > itemNum) {      --highlightedItemIndex;    }    // Ensure that an item remains highlighted.    if (highlightedItemIndex >= numOfItems) {      highlightedItemIndex = numOfItems-1;    }  }