fireStateChanged(changeEvent);
fireStateChanged();
  protected void changeState(int stateflag, boolean b)    {    int oldstate = stateMask;    int newstate;    if (b)      newstate = oldstate | stateflag;    else      newstate = oldstate & ~stateflag;    if (oldstate == newstate)      return;    if ((stateflag != SELECTED)         && (stateflag != ENABLED)        && (stateMask & ENABLED) == 0)      return;    stateMask = newstate;    fireStateChanged(changeEvent);    if ((oldstate & SELECTED) == 0        && (newstate & SELECTED) == SELECTED)      fireItemStateChanged(new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED,                                          null, ItemEvent.SELECTED));    else if ((oldstate & SELECTED) == SELECTED             && (newstate & SELECTED) == 0)      fireItemStateChanged(new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED,                                          null, ItemEvent.DESELECTED));        else if (((oldstate & ARMED) == ARMED && (oldstate & PRESSED) == PRESSED)             &&             ((newstate & ARMED) == ARMED && (newstate & PRESSED) == 0))      {        fireActionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED,                                            actionCommand));      }    }