SwingUtilities.calculateInnerArea(scrollbar, trackRect); trackRect.width -= incrDims.getWidth(); trackRect.width -= decrDims.getWidth(); trackRect.x += decrDims.getWidth();  updateThumbRect();
  protected void layoutHScrollbar(JScrollBar sb)  {    // All we have to do is layout the 2 buttons?    Rectangle vr = new Rectangle();    SwingUtilities.calculateInnerArea(scrollbar, vr);    // Update the rectangles.    getTrackBounds();    getThumbBounds();    Dimension incrDims = incrButton.getPreferredSize();    Dimension decrDims = decrButton.getPreferredSize();    decrButton.setBounds(vr.x, vr.y, decrDims.width, trackRect.height);    incrButton.setBounds(trackRect.x + trackRect.width, vr.y, incrDims.width,                         trackRect.height);  }