@Override
	public Insets getBorderInsets( Component c, Insets insets ) {
		Insets m = getStyleFromToolBarUI( c, ui -> ui.borderMargins );
		if( m != null ) {
			int t = top, l = left, b = bottom, r = right;
			top = m.top; left = m.left; bottom = m.bottom; right = m.right;
			insets = super.getBorderInsets( c, insets );
			top = t; left = l; bottom = b; right = r;
		} else
			insets = super.getBorderInsets( c, insets );

		// add grip inset if floatable
		if( c instanceof JToolBar && ((JToolBar)c).isFloatable() ) {
			int gripInset = UIScale.scale( GRIP_SIZE );
			if( ((JToolBar)c).getOrientation() == SwingConstants.HORIZONTAL ) {
				if( c.getComponentOrientation().isLeftToRight() )
					insets.left += gripInset;
				else
					insets.right += gripInset;
			} else
				insets.top += gripInset;
		}

		return insets;
	}
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