private void initializeScrollbars(){
  verticalScrollbar.addAdjustmentListener(listener);
  add(verticalScrollbar,BorderLayout.EAST);
  horizontalScrollbar.addAdjustmentListener(listener);
  add(horizontalScrollbar,BorderLayout.SOUTH);
}

private void initializeScrollbars ( ) { verticalScrollbar . addAdjustmentListener ( listener ) ; add ( verticalScrollbar , BorderLayout . EAST ) ; horizontalScrollbar . addAdjustmentListener ( listener ) ; add ( horizontalScrollbar , BorderLayout . SOUTH ) ; }
creates and initializes the scroll bars that are used to scroll through the data .
