super.setAction(null);
}
else {
// Pass a MuteProxyAction to JButton that does nothing when the action is performed.
// We need this to keep the use the Action's properties but handle action events ourself.
super.setAction(new MuteProxyAction(buttonClickedAction));
}
this.buttonClickedAction = buttonClickedAction;
}