public final class KeyStrokeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addShortcutToComponent(JComponent component,
KeyStroke keystroke,
int whenInFocus,
String actionCommand,
Action action)
Adds the shortcut to component.
|
static void |
addShortcutToComponent(JComponent component,
KeyStroke keystroke,
String actionCommand,
Action action)
Adds the shortcut to component.
|
public static void addShortcutToComponent(JComponent component, KeyStroke keystroke, int whenInFocus, String actionCommand, Action action)
component - the componentkeystroke - the keystrokewhenInFocus - the whe in focusactionCommand - the action commandaction - the actionpublic static void addShortcutToComponent(JComponent component, KeyStroke keystroke, String actionCommand, Action action)
component - the componentkeystroke - the keystrokeactionCommand - the action commandaction - the actionCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.