public class GreetingAction extends javax.swing.AbstractAction
| Constructor and Description |
|---|
GreetingAction(java.lang.String greeting,
javax.swing.JTextArea textArea)
Constructs a greeting action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
void |
setOpposite(javax.swing.Action action)
Sets the opposite action.
|
public GreetingAction(java.lang.String greeting, javax.swing.JTextArea textArea)
greeting - the string to add to the text areatextArea - the text area to which to add the greetingpublic void setOpposite(javax.swing.Action action)
action - the action to be enabled after this action was
carried outpublic void actionPerformed(java.awt.event.ActionEvent event)