protected Rectangle calculateGripBounds( Component c, int x, int y, int width, int height ) {
		// include toolbar margin in grip bounds calculation
		Insets insets = super.getBorderInsets( c, new Insets( 0, 0, 0, 0 ) );
		Rectangle r = FlatUIUtils.subtractInsets( new Rectangle( x, y, width, height ), insets );

		// calculate grip bounds
		int gripSize = UIScale.scale( GRIP_SIZE );
		if( ((JToolBar)c).getOrientation() == SwingConstants.HORIZONTAL ) {
			if( !c.getComponentOrientation().isLeftToRight() )
				r.x = r.x + r.width - gripSize;
			r.width = gripSize;
		} else
			r.height = gripSize;

		return r;
	}
Border for {@link javax.swing.JToolBar}.

@uiDefault ToolBar.borderMargins				Insets
@uiDefault ToolBar.gripColor					Color

@author Karl Tauber
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatToolBarBorder.java