private void showTitleTip() {
		JRootPane rootPane = SwingUtilities.getRootPane( desktopIcon );
		if( rootPane == null )
			return;

		if( titleTip == null ) {
			titleTip = new JToolTip();
			rootPane.getLayeredPane().add( titleTip, JLayeredPane.POPUP_LAYER );
		}
		titleTip.setTipText( frame.getTitle() );
		titleTip.setSize( titleTip.getPreferredSize() );

		int tx = (desktopIcon.getWidth() - titleTip.getWidth()) / 2;
		int ty = -(titleTip.getHeight() + UIScale.scale( 4 ));
		Point pt = SwingUtilities.convertPoint( desktopIcon, tx, ty, titleTip.getParent() );
		if( pt.x + titleTip.getWidth() > rootPane.getWidth() )
			pt.x = rootPane.getWidth() - titleTip.getWidth();
		if( pt.x < 0 )
			pt.x = 0;
		titleTip.setLocation( pt );
		titleTip.repaint();
	}
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