int itemsDisplayed(){
  return (Math.min(items.size() - vsb.getValue(),itemsInWindow()));
}

int itemsDisplayed ( ) { return ( Math . min ( items . size ( ) - vsb . getValue ( ) , itemsInWindow ( ) ) ) ; }
returns number of items actually displayed in the list
