SwingUtilities.calculateInnerArea(scrollbar, trackRect);  if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) { trackRect.width -= incrButton.getPreferredSize().getWidth(); trackRect.width -= decrButton.getPreferredSize().getWidth();  trackRect.x += decrButton.getPreferredSize().getWidth(); } else { trackRect.height -= incrButton.getPreferredSize().getHeight(); trackRect.height -= decrButton.getPreferredSize().getHeight();  trackRect.y += incrButton.getPreferredSize().getHeight(); }
  protected Rectangle getTrackBounds()  {    SwingUtilities.calculateInnerArea(scrollbar, trackRect);    if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL)      {	trackRect.width -= incrButton.getPreferredSize().getWidth();	trackRect.width -= decrButton.getPreferredSize().getWidth();	trackRect.x += decrButton.getPreferredSize().getWidth();      }    else      {	trackRect.height -= incrButton.getPreferredSize().getHeight();	trackRect.height -= decrButton.getPreferredSize().getHeight();	trackRect.y += incrButton.getPreferredSize().getHeight();      }    return trackRect;  }