code: public static void setDeepEnabled(Component component, boolean enabled)
      {
          component.setEnabled(enabled);
          if (component instanceof Container)
          {
              Container container = (Container)component;
              for (Component c : container.getComponents())
              {
                  setDeepEnabled(c, enabled);
              }
          }
      }
docs: Enables or disables the given component and all its children
  recursively
  
  @param component The component
  @param enabled Whether the component tree should be enabled