void deselectItem(int index){
  if (!isSelected(index)) {
    return;
  }
  if (!multipleSelections) {
    selected=new int[0];
  }
 else {
    int i=posInSel(index);
    int newsel[]=new int[selected.length - 1];
    System.arraycopy(selected,0,newsel,0,i);
    System.arraycopy(selected,i + 1,newsel,i,selected.length - (i + 1));
    selected=newsel;
  }
  currentIndex=index;
  if (!isItemHidden(index)) {
    repaint(index,index,PAINT_ITEMS);
  }
}

void deselectItem ( int index ) { if ( ! isSelected ( index ) ) { return ; } if ( ! multipleSelections ) { selected = new int [ 0 ] ; } else { int i = posInSel ( index ) ; int newsel [ ] = new int [ selected . length - 1 ] ; System . arraycopy ( selected , 0 , newsel , 0 , i ) ; System . arraycopy ( selected , i + 1 , newsel , i , selected . length - ( i + 1 ) ) ; selected = newsel ; } currentIndex = index ; if ( ! isItemHidden ( index ) ) { repaint ( index , index , PAINT_ITEMS ) ; } }
deselect the index redraw the list to the screen
