@Override
	protected void paintIcon( Component c, Graphics2D g ) {
		if( foreground != null ) {
			g.fill( createOutside() );

			g.setColor( foreground );
			g.fill( createInside() );
		} else {
			Path2D path = new Path2D.Float( Path2D.WIND_EVEN_ODD );
			path.append( createOutside(), false );
			path.append( createInside(), false );
			g.fill( path );
		}
	}
Base class for icons for {@link javax.swing.JOptionPane}.

@uiDefault OptionPane.icon.foreground			Color	default is transparent

@author Karl Tauber
flatlaf-core/src/main/java/com/formdev/flatlaf/icons/FlatOptionPaneAbstractIcon.java