Package com.jgoodies.looks.common
Class MenuSelectionProcessor
java.lang.Object
com.jgoodies.looks.common.MenuSelectionProcessor
- All Implemented Interfaces:
KeyEventPostProcessor
Handles the Alt key to select the first menu in the menu bar - if any.
Useful to let non-Windows L&fs like Plastic feel more like Windows.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
altPressed
(KeyEvent ev) private void
altReleased
(KeyEvent ev) private static JMenuBar
getMenuBar
(KeyEvent ev) boolean
-
Field Details
-
altKeyPressed
private boolean altKeyPressed
-
-
Constructor Details
-
MenuSelectionProcessor
public MenuSelectionProcessor()
-
-
Method Details
-
postProcessKeyEvent
- Specified by:
postProcessKeyEvent
in interfaceKeyEventPostProcessor
-
altPressed
-
altReleased
-
getMenuBar
-