code: private int getComponentState(JComponent c) {
          if (frame != null) {
  
              if (frame.isSelected()) {
                  return SELECTED;
              }
          }
  
          return SeaGlassLookAndFeel.getComponentState(c);
      }
docs: Get the state for the component.
  
  @param  c the component.
  
  @return the state for the component.