if (action.getValue(AbstractAction.SHORT_DESCRIPTION) == null) { action.putValue(AbstractAction.SHORT_DESCRIPTION, action.getValue(AbstractAction.NAME)); KeyStroke acceleratorKeyStroke = (KeyStroke) action.getValue(AbstractAction.ACCELERATOR_KEY); if (acceleratorKeyStroke != null) { String key = "Accelerator" + System.currentTimeMillis(); getActionMap().put(key, action); action.putValue(AbstractAction.SHORT_DESCRIPTION, action.getValue(AbstractAction.SHORT_DESCRIPTION) + " (" + KeyEvent.getKeyModifiersText( acceleratorKeyStroke.getModifiers()) + " " + KeyEvent.getKeyText( acceleratorKeyStroke.getKeyCode()) + ")");
if (action.getValue(AbstractAction.SHORT_DESCRIPTION) == null) { action.putValue(AbstractAction.SHORT_DESCRIPTION, action.getValue(AbstractAction.NAME)); KeyStroke acceleratorKeyStroke = (KeyStroke) action.getValue(AbstractAction.ACCELERATOR_KEY); if (acceleratorKeyStroke != null) { String key = "Accelerator" + System.currentTimeMillis(); getActionMap().put(key, action); action.putValue(AbstractAction.SHORT_DESCRIPTION, action.getValue(AbstractAction.SHORT_DESCRIPTION) + " (" + KeyEvent.getKeyModifiersText( acceleratorKeyStroke.getModifiers()) + " " + KeyEvent.getKeyText( acceleratorKeyStroke.getKeyCode()) + ")");
if (action.getValue(AbstractAction.SHORT_DESCRIPTION) == null) { action.putValue(AbstractAction.SHORT_DESCRIPTION, action.getValue(AbstractAction.NAME)); KeyStroke acceleratorKeyStroke = (KeyStroke) action.getValue(AbstractAction.ACCELERATOR_KEY); if (acceleratorKeyStroke != null) { String key = "Accelerator" + System.currentTimeMillis(); getActionMap().put(key, action); action.putValue(AbstractAction.SHORT_DESCRIPTION, action.getValue(AbstractAction.SHORT_DESCRIPTION) + " (" + KeyEvent.getKeyModifiersText( acceleratorKeyStroke.getModifiers()) + " " + KeyEvent.getKeyText( acceleratorKeyStroke.getKeyCode()) + ")");