public void scrollToSelection() {
    int minSelectionIndex = list.getMinSelectionIndex();
    int maxSelectionIndex = list.getMaxSelectionIndex();
    if (minSelectionIndex != -1 && maxSelectionIndex != -1) {
      list.scrollRectToVisible(list.getCellBounds(minSelectionIndex, maxSelectionIndex));
    }
  }
public void scrollToSelection()