changeState(PRESSED, p);
if ((p && isPressed()) || (!p && !isPressed())) return;   if (!isEnabled()) return;   if (p) stateMask = stateMask | PRESSED; else stateMask = stateMask & (~PRESSED);   if (!p && isArmed()) fireActionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, actionCommand));   fireStateChanged();
  public void setPressed(boolean p)    {	    changeState(PRESSED, p);    }