Package io.github.jonestimd.swing.action
Class ActionUtils
- java.lang.Object
-
- io.github.jonestimd.swing.action.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 voidinstall(javax.swing.JComponent component, javax.swing.Action action, java.lang.Object actionMapKey, java.lang.String keyStroke)Install a keyboard action on a component.
-
-
-
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 theinputMapandactionMapkeyStroke- the key stroke that invokes the action
-
-