Rectangle getFrameIconBounds() {
		Icon icon = titleLabel.getIcon();
		if( icon == null )
			return null;

		int iconWidth = icon.getIconWidth();
		int iconHeight = icon.getIconHeight();
		boolean leftToRight = titleLabel.getComponentOrientation().isLeftToRight();
		int x = titleLabel.getX() + (leftToRight ? 0 : (titleLabel.getWidth() - iconWidth));
		int y = titleLabel.getY() + ((titleLabel.getHeight() - iconHeight) / 2);
		return new Rectangle( x, y, iconWidth, iconHeight );
	}
Provides the Flat LaF internal frame title bar.

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