@Override
	protected void paintText( Graphics g, JMenuItem menuItem, Rectangle textRect, String text ) {
		ButtonModel model = menuItem.getModel();
		if( !model.isEnabled() ||
			(menuItem instanceof JideSplitButton && !((JideSplitButton)menuItem).isButtonEnabled()) )
		{
			FontMetrics fm = menuItem.getFontMetrics( menuItem.getFont() );

			if( !menuItem.getComponentOrientation().isLeftToRight() &&
				menuItem.getComponentOrientation().isHorizontal() )
			{
				Rectangle2D rectText = fm.getStringBounds( text, g );
				textRect.x = (int) (menuItem.getWidth() - textRect.x - rectText.getWidth() + (4 + menuItem.getHeight() / 2 - 1));
			}

			g.setColor( UIDefaultsLookup.getColor( "Button.disabledForeground" ) );
			drawStringUnderlineCharAt( menuItem, g, text, -1, textRect.x, textRect.y + fm.getAscent() );
		} else
			super.paintText( g, menuItem, textRect, text );
	}
Provides the Flat LaF UI delegate for {@link com.jidesoft.swing.JideSplitButton}.

@author Karl Tauber
@since 1.1
flatlaf-jide-oss/src/main/java/com/formdev/flatlaf/jideoss/ui/FlatJideSplitButtonUI.java