private boolean isAtMaximum(Adjustable bar){
  return (bar.getValue() + bar.getVisibleAmount() >= bar.getMaximum());
}

private boolean isAtMaximum ( Adjustable bar ) { return ( bar . getValue ( ) + bar . getVisibleAmount ( ) >= bar . getMaximum ( ) ) ; }
check if a scroll bar is at its maximum value .
