if (a.getValue(Action.MNEMONIC_KEY) != null)
  protected  void configurePropertiesFromAction(Action a)  {    if (a == null)      {        setText(null);        setIcon(null);        setEnabled(true);        setToolTipText(null);      }    else      {        setText((String)(a.getValue(Action.NAME)));        setIcon((Icon)(a.getValue(Action.SMALL_ICON)));        setEnabled(a.isEnabled());        setToolTipText((String)(a.getValue(Action.SHORT_DESCRIPTION)));        setMnemonic(((Integer)(a.getValue(Action.MNEMONIC_KEY))).intValue());        setActionCommand((String)(a.getValue(Action.ACTION_COMMAND_KEY)));      }  }