code: public int getCloseButtonState(JComponent c, int tabIndex, boolean tabIsMousedOver) {
          if (!c.isEnabled()) {
              return DISABLED;
          } else if (tabIndex == closeButtonArmedIndex) {
              return PRESSED;
          } else if (tabIndex == closeButtonHoverIndex) {
              return FOCUSED;
          } else if (tabIsMousedOver) {
              return MOUSE_OVER;
          }
  
          return ENABLED;
      }
docs: Get the state for the specified tab's close button.
  
  @param  c               the tabbed pane.
  @param  tabIndex        the index of the tab.
  @param  tabIsMousedOver TODO
  
  @return the close button state.