public class FrameCancelAction extends AbstractAction
| Modifier and Type | Field and Description |
|---|---|
static String |
MNEMONIC_KEY
Mnemonico dessa ação
|
static String |
NAME
Nome dessa ação
|
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
FrameCancelAction()
Construtor.
|
FrameCancelAction(JFrame owner)
Construtor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent evt)
Executa a ação de fechar a janela.
|
void |
setFrame(JFrame owner)
Atribui a janela que é fechada como resultado desta ação.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic static final String NAME
public static final String MNEMONIC_KEY
public FrameCancelAction(JFrame owner)
owner - a janela que originou essa açãopublic FrameCancelAction()
public void setFrame(JFrame owner)
owner - a janela a ser fechadapublic void actionPerformed(ActionEvent evt)
evt - o evento ocorridoCopyright © 2017. All rights reserved.