public class EscapeAction extends AbstractAction
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Implement the Escape Action.
|
static void |
register(JDialog dialog)
Registers an EscapeAction on the specified JDialog
|
static void |
register(JRootPane rootPane)
Registers an EscapeAction on the specified JRootPane
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static void register(JDialog dialog)
dialog
- the JDialog the EscapeAction is registered withpublic static void register(JRootPane rootPane)
rootPane
- the JRootPane the EscapeAction is registered withpublic void actionPerformed(ActionEvent e)
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.