mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 15:00:54 +03:00
UI inspector: support nested classes
This commit is contained in:
@@ -245,12 +245,8 @@ public class FlatInspector
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String buildToolTipText( Component c ) {
|
private String buildToolTipText( Component c ) {
|
||||||
String name = c.getClass().getSimpleName();
|
String name = c.getClass().getName();
|
||||||
if( name.isEmpty() ) {
|
|
||||||
// anonymous class
|
|
||||||
name = c.getClass().getName();
|
|
||||||
name = name.substring( name.lastIndexOf( '.' ) + 1 );
|
name = name.substring( name.lastIndexOf( '.' ) + 1 );
|
||||||
}
|
|
||||||
|
|
||||||
String text =
|
String text =
|
||||||
"Class: " + name + " (" + c.getClass().getPackage().getName() + ")\n" +
|
"Class: " + name + " (" + c.getClass().getPackage().getName() + ")\n" +
|
||||||
|
|||||||
Reference in New Issue
Block a user