@Override
    public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) {
      if (orientation == SwingConstants.HORIZONTAL) {
        return visibleRect.width - 10;
      }
      return visibleRect.height - 10;
    }
@Override
    public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)