{
ActionButton.this.setToolTipText((String)
getAction().getValue(Action.SHORT_DESCRIPTION));
}
final Action ac = getAction();
if (event.getPropertyName().equals(ActionDowngrade.ACCELERATOR_KEY))
{
final KeyStroke oldVal = (KeyStroke) event.getOldValue();
if (oldVal != null)
{
unregisterKeyboardAction(oldVal);
}
final Object o = ac.getValue(ActionDowngrade.ACCELERATOR_KEY);
if (o instanceof KeyStroke)
{
final KeyStroke k = (KeyStroke) o;
registerKeyboardAction(ac, k, JComponent.WHEN_IN_FOCUSED_WINDOW);
}
}
else if (event.getPropertyName().equals(ActionDowngrade.MNEMONIC_KEY))
{
final Object o = ac.getValue(ActionDowngrade.MNEMONIC_KEY);
if (o != null)
{
if (o instanceof Character)
{
final Character c = (Character) o;