public void setKeyShortcut(KeyStroke keyCombination, String actionName, Runnable action)
    {
        frame.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(keyCombination, actionName);
        frame.getRootPane().getActionMap().put(actionName, new RunnableAction(action));
    }
public void setKeyShortcut(KeyStroke keyCombination, String actionName, Runnable action)
    {
        frame.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(keyCombination, actionName);
        frame.getRootPane().getActionMap().put(actionName, new RunnableAction(action));
    }
public void setKeyShortcut ( KeyStroke keyCombination , String actionName , Runnable action ) { frame . getRootPane ( ) . getInputMap ( JComponent . WHEN_ANCESTOR_OF_FOCUSED_COMPONENT ) . put ( keyCombination , actionName ) ; frame . getRootPane ( ) . getActionMap ( ) . put ( actionName , new RunnableAction ( action ) ) ; }
{@inheritDoc}
{