@Override
	public void update( Graphics g, JComponent c ) {
		if( c.isOpaque() ) {
			// fill background with color derived from desktop pane
			Color background = c.getBackground();
			JDesktopPane desktopPane = desktopIcon.getDesktopPane();
			g.setColor( (desktopPane != null)
				? FlatUIUtils.deriveColor( background, desktopPane.getBackground() )
				: background );
			g.fillRect( 0, 0, c.getWidth(), c.getHeight() );
		}

		paint( g, c );
	}
Provides the Flat LaF UI delegate for {@link javax.swing.JInternalFrame.JDesktopIcon}.

<!-- BasicDesktopIconUI -->

@uiDefault DesktopIcon.border					Border

<!-- FlatDesktopIconUI -->

@uiDefault DesktopIcon.background				Color
@uiDefault DesktopIcon.foreground				Color
@uiDefault DesktopIcon.iconSize					Dimension
@uiDefault DesktopIcon.closeSize					Dimension
@uiDefault DesktopIcon.closeIcon					Icon

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