int (@NotNull Rectangle visibleRect, int orientation, int direction) { if (orientation == SwingConstants.VERTICAL) { return super.getScrollableUnitIncrement(visibleRect, orientation, direction); } else { // if orientation == SwingConstants.HORIZONTAL // use smooth editor-like scrolling return SwingUtilities.computeStringWidth(getFontMetrics(getFont()), " "); } }