Package de.alpharogroup.swing.utils
Class KeyStrokeExtensions
- java.lang.Object
-
- de.alpharogroup.swing.utils.KeyStrokeExtensions
-
public final class KeyStrokeExtensions extends java.lang.ObjectThe classKeyStrokeExtensions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddShortcutToComponent(javax.swing.JComponent component, javax.swing.KeyStroke keystroke, int whenInFocus, java.lang.String actionCommand, javax.swing.Action action)Adds the shortcut to component.static voidaddShortcutToComponent(javax.swing.JComponent component, javax.swing.KeyStroke keystroke, java.lang.String actionCommand, javax.swing.Action action)Adds the shortcut to component.
-
-
-
Method Detail
-
addShortcutToComponent
public static void addShortcutToComponent(javax.swing.JComponent component, javax.swing.KeyStroke keystroke, int whenInFocus, java.lang.String actionCommand, javax.swing.Action action)Adds the shortcut to component.- Parameters:
component- the componentkeystroke- the keystrokewhenInFocus- the whe in focusactionCommand- the action commandaction- the action
-
addShortcutToComponent
public static void addShortcutToComponent(javax.swing.JComponent component, javax.swing.KeyStroke keystroke, java.lang.String actionCommand, javax.swing.Action action)Adds the shortcut to component.- Parameters:
component- the componentkeystroke- the keystrokeactionCommand- the action commandaction- the action
-
-