Class SwingHelper


  • public abstract class SwingHelper
    extends java.lang.Object
    Utility methods for Java swing GUI components
    • Constructor Summary

      Constructors 
      Constructor Description
      SwingHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void setEnabled​(java.awt.Component comp, boolean enable)
      Enables or disables the given GUI component, as well as its sub-components recursively when it is a container.
      • Methods inherited from class java.lang.Object

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

      • SwingHelper

        public SwingHelper()
    • Method Detail

      • setEnabled

        public static void setEnabled​(java.awt.Component comp,
                                      boolean enable)
        Enables or disables the given GUI component, as well as its sub-components recursively when it is a container.
        Parameters:
        comp - the target component to recursively enable or disable
        enable - true to enable the component(s), false to disable the component(s)