Next: Action Field Summary
Up: Swing Component Basics
Previous: Adding Actions to Containers
Essentially Action extends the AWT ActionListener and is
defined in javax.swing.action:
- This forces classes that implement Action to provide an
actionPerformed() method.
- In the above example the save code would be written in an
actionPerformed() method.
- ActionListener automatically registered by creating
container component - so very easy to program.
Dave Marshall
4/14/1999