protected int positionForMouseEvent(MouseEvent e){
  int newY=(e.getSource() == BasicSplitPaneDivider.this) ? (e.getY() + getLocation().y) : e.getY();
  newY=Math.min(maxX,Math.max(minX,newY - offset));
  return newY;
}

protected int positionForMouseEvent ( MouseEvent e ) { int newY = ( e . getSource ( ) == BasicSplitPaneDivider . this ) ? ( e . getY ( ) + getLocation ( ) . y ) : e . getY ( ) ; newY = Math . min ( maxX , Math . max ( minX , newY - offset ) ) ; return newY ; }
returns the new position to put the divider at based on the passed in mouseevent .
