public synchronized T clearItems(){
  items.clear();
  selectedIndex=-1;
  invalidate();
  return self();
}

public synchronized T clearItems ( ) { items . clear ( ) ; selectedIndex = - 1 ; invalidate ( ) ; return self ( ) ; }
removes all items from the list box
