}
} else if (shortcut.getEnabled()) {
String actionName = "action_" + shortcut.getName();
InputMap inputMap = button.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
inputMap.put(KeyStroke.getKeyStroke(shortcut.getKey(), shortcut.getModifiers()), actionName);
button.getActionMap().put(actionName, new ActionClick(button));
if (message != null) {
int index = message.indexOf(shortcut.getKey());
if ((index >= 0) && (index < button.getText().length())) {
button.setDisplayedMnemonicIndex(index);
}