Skip to content

Commit

Permalink
FlatInspector: added FlatLaf style to tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
DevCharly committed Jul 16, 2024
1 parent 14705a9 commit b142a6f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,12 @@ else if( c instanceof JToolBar )
appendRow( buf, "Left-to-right", String.valueOf( c.getComponentOrientation().isLeftToRight() ) );
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
buf.append( "<tr><td colspan=\"2\">" );
if( parentLevel > 0 )
Expand Down

0 comments on commit b142a6f

Please sign in to comment.