Class ActionUtils


  • public class ActionUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void install​(javax.swing.JComponent component, javax.swing.Action action, java.lang.Object actionMapKey, java.lang.String keyStroke)
      Install a keyboard action on a component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActionUtils

        public ActionUtils()
    • Method Detail

      • install

        public static void install​(javax.swing.JComponent component,
                                   javax.swing.Action action,
                                   java.lang.Object actionMapKey,
                                   java.lang.String keyStroke)
        Install a keyboard action on a component.
        Parameters:
        actionMapKey - the key to use for the inputMap and actionMap
        keyStroke - the key stroke that invokes the action