code: public static int getComponentState(Component c) {
          if (c.isEnabled()) {
  
              if (c.isFocusOwner()) {
                  return SeaglassUI.ENABLED | SeaglassUI.FOCUSED;
              }
  
              return SeaglassUI.ENABLED;
          }
  
          return SeaglassUI.DISABLED;
      }
docs: Returns the component state for the specified component. This should only
  be used for Components that don't have any special state beyond that of
  ENABLED, DISABLED or FOCUSED. For example, buttons shouldn't call into
  this method.
  
  @param  c the component.
  
  @return the simple state of the component.