Class FlatUIDefaultsInspector


  • public class FlatUIDefaultsInspector
    extends java.lang.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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.JComponent createInspectorPanel()
      Creates a UI defaults inspector panel that can be embedded into any window.
      static void hide()  
      static void install​(java.lang.String activationKeys)
      Installs a key listener into the application that allows enabling and disabling the UI inspector with the given keystroke (e.g.
      static void show()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • install

        public static void install​(java.lang.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 javax.swing.JComponent createInspectorPanel()
        Creates a UI defaults inspector panel that can be embedded into any window.