Skip to content

Commit b142a6f

Browse files
committed
FlatInspector: added FlatLaf style to tooltip
1 parent 14705a9 commit b142a6f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatInspector.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,12 @@ else if( c instanceof JToolBar )
547547
appendRow( buf, "Left-to-right", String.valueOf( c.getComponentOrientation().isLeftToRight() ) );
548548
appendRow( buf, "Parent", (c.getParent() != null ? toString( c.getParent().getClass(), classHierarchy ) : "null") );
549549

550+
if( c instanceof JComponent ) {
551+
Object style = ((JComponent)c).getClientProperty( FlatClientProperties.STYLE );
552+
if( style != null )
553+
appendRow( buf, "FlatLaf Style", style.toString() );
554+
}
555+
550556
// append parent level
551557
buf.append( "<tr><td colspan=\"2\">" );
552558
if( parentLevel > 0 )

0 commit comments

Comments
 (0)