protected void selectPreviousPossibleValue(){
  int si=listBox.getSelectedIndex();
  if (si > 0) {
    listBox.setSelectedIndex(si - 1);
    listBox.ensureIndexIsVisible(si - 1);
  }
}

protected void selectPreviousPossibleValue ( ) { int si = listBox . getSelectedIndex ( ) ; if ( si > 0 ) { listBox . setSelectedIndex ( si - 1 ) ; listBox . ensureIndexIsVisible ( si - 1 ) ; } }
selects the previous item in the list . it won ' t change the selection if the currently selected item is already the first item .
