Rectangle (Rectangle baseBounds, boolean thumb) { Rectangle bounds = super.getMacScrollBarBounds(baseBounds, thumb); bounds.width = Math.min(bounds.width, getMaxMacThumbWidth()); int b2 = bounds.width / 2; bounds.x = getThinGap() + getMinMarkHeight() + SCROLLBAR_WIDTH.get() / 2 - b2; return bounds; }