FlatInspector: added FlatLaf style to tooltip

This commit is contained in:
Karl Tauber
2024-07-16 13:58:53 +02:00
parent 14705a9b30
commit b142a6f31e

View File

@@ -547,6 +547,12 @@ public class FlatInspector
appendRow( buf, "Left-to-right", String.valueOf( c.getComponentOrientation().isLeftToRight() ) ); appendRow( buf, "Left-to-right", String.valueOf( c.getComponentOrientation().isLeftToRight() ) );
appendRow( buf, "Parent", (c.getParent() != null ? toString( c.getParent().getClass(), classHierarchy ) : "null") ); appendRow( buf, "Parent", (c.getParent() != null ? toString( c.getParent().getClass(), classHierarchy ) : "null") );
if( c instanceof JComponent ) {
Object style = ((JComponent)c).getClientProperty( FlatClientProperties.STYLE );
if( style != null )
appendRow( buf, "FlatLaf Style", style.toString() );
}
// append parent level // append parent level
buf.append( "<tr><td colspan=\"2\">" ); buf.append( "<tr><td colspan=\"2\">" );
if( parentLevel > 0 ) if( parentLevel > 0 )