Package com.formdev.flatlaf.extras
Class FlatInspector
java.lang.Object
com.formdev.flatlaf.extras.FlatInspector
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:
- press
Esckey to disable UI inspector - press
Ctrlkey to increase inspection level, which shows information about parent of UI component at mouse location - press
Shiftkey to decrease inspection level
- Author:
- Karl Tauber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidInstalls a key listener into the application that allows enabling and disabling the UI inspector with the given keystroke (e.g.booleanvoidvoidsetEnabled(boolean enabled) voidupdate()
-
Constructor Details
-
FlatInspector
-
-
Method Details
-
install
Installs a key listener into the application that allows enabling and disabling the UI inspector with the given keystroke (e.g. "ctrl shift alt X").- Parameters:
activationKeys- a keystroke (e.g. "ctrl shift alt X"), ornullto use "ctrl shift alt X"
-
addPropertyChangeListener
-
removePropertyChangeListener
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
update
public void update()
-