public class KeyEventsRedirector
extends javax.swing.AbstractAction
| Constructor and Description |
|---|
KeyEventsRedirector(javax.swing.JMenuBar menuBarObj,
java.awt.Component targetComponent,
javax.swing.KeyStroke[] keyStrokesArr)
Creates and installs a redirector object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent evtObj)
Action-performed method for all menu item accelerators used by this
object.
|
public KeyEventsRedirector(javax.swing.JMenuBar menuBarObj,
java.awt.Component targetComponent,
javax.swing.KeyStroke[] keyStrokesArr)
menuBarObj - a displayed menu bar.targetComponent - the target component to sent key events to.keyStrokesArr - an array of 'keyStroke' objects defining which
keys are to be redirected.