diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ed32cd4..fb91470e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ FlatLaf Change Log - Button: Support non-square icon-only buttons. (issue #110) - Ubuntu Linux: Fixed poorly rendered font. (issue #105) - macOS Catalina: Use Helvetica Neue font. +- `FlatInspector` added (see [FlatLaf Extras](flatlaf-extras)). ## 0.35 diff --git a/flatlaf-extras/README.md b/flatlaf-extras/README.md index 8d8d6988..6e6e5bcd 100644 --- a/flatlaf-extras/README.md +++ b/flatlaf-extras/README.md @@ -3,6 +3,9 @@ FlatLaf Extras This sub-project provides some additional components and classes: +- [FlatInspector](src/main/java/com/formdev/flatlaf/extras/FlatInspector.java): + A simple UI inspector that shows information about UI component at mouse + location in a tooltip. - [FlatSVGIcon](src/main/java/com/formdev/flatlaf/extras/FlatSVGIcon.java): An icon that displays SVG using [svgSalamander](https://github.com/JFormDesigner/svgSalamander). diff --git a/flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatInspector.java b/flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatInspector.java index 8e029b43..33366b38 100644 --- a/flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatInspector.java +++ b/flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatInspector.java @@ -61,6 +61,24 @@ import com.formdev.flatlaf.ui.FlatUIUtils; import com.formdev.flatlaf.util.UIScale; /** + * A simple UI inspector that shows information about UI component at mouse location + * in a tooltip. + *
+ * To use it in an application install it with: + *
+ * FlatInspector.install( "ctrl shift alt X" ); + *+ * This can be done e.g. in the main() method and allows enabling (and disabling) + * the UI inspector for the active window with the given keystroke. + *
+ * When the UI inspector is active some additional keys are available: + *