Class FlatUIDefaultsInspector


  • public class FlatUIDefaultsInspector
    extends Object
    A simple UI defaults inspector that shows a window with all UI defaults used in current look and feel.

    To use it in an application install it with:

     FlatUIDefaultsInspector.install( "ctrl shift alt Y" );
     
    This can be done e.g. in the main() method and allows enabling (and disabling) the UI defaults inspector with the given keystroke.
    • Method Detail

      • install

        public static void install​(String activationKeys)
        Installs a key listener into the application that allows enabling and disabling the UI inspector with the given keystroke (e.g. "ctrl shift alt Y").
        Parameters:
        activationKeys - a keystroke (e.g. "ctrl shift alt Y")
      • show

        public static void show()
      • hide

        public static void hide()
      • createInspectorPanel

        public static JComponent createInspectorPanel()
        Creates a UI defaults inspector panel that can be embedded into any window.