@Override
		protected void paintComponent( Graphics g ) {
			g.setColor( getBackground() );
			g.fillRect( 0, 0, getWidth(), getHeight() );

			FontMetrics fm = getFontMetrics( getFont() );
			Rectangle textR = new Rectangle();
			String clippedText = layoutLabel( fm, key, textR );
			int x = textR.x;
			int y = textR.y + fm.getAscent();

			int dot = key.indexOf( '.' );
			if( dot > 0 && !selected ) {
				g.setColor( FlatUIUtils.getUIColor( "Label.disabledForeground",
					FlatUIUtils.getUIColor( "Label.disabledText", Color.gray ) ) );

				if( dot >= clippedText.length() )
					FlatUIUtils.drawString( this, g, clippedText, x, y );
				else {
					String prefix = clippedText.substring( 0, dot + 1 );
					String subkey = clippedText.substring( dot + 1 );

					FlatUIUtils.drawString( this, g, prefix, x, y );

					g.setColor( getForeground() );
					FlatUIUtils.drawString( this, g, subkey, x + fm.stringWidth( prefix ), y );
				}
			} else {
				g.setColor( getForeground() );
				FlatUIUtils.drawString( this, g, clippedText, x, y );
			}

			if( isOverridden ) {
				if( overriddenIcon == null ) {
					overriddenIcon = new FlatAbstractIcon( 16, 16, null ) {
						@Override
						protected void paintIcon( Component c, Graphics2D g2 ) {
							g2.setColor( FlatUIUtils.getUIColor( "Actions.Red", Color.red ) );
							g2.setStroke( new BasicStroke( 2f ) );
							g2.draw( FlatUIUtils.createPath( false, 3,10, 8,5, 13,10 ) );
						}
					};
				}

				overriddenIcon.paintIcon( this, g,
					getWidth() - overriddenIcon.getIconWidth(),
					(getHeight() - overriddenIcon.getIconHeight()) / 2 );
			}

			paintSeparator( g );
		}
Creates a UI defaults inspector panel that can be embedded into any window.
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatUIDefaultsInspector.java