next up previous
Next: The Action Interface Up: Swing Component Basics Previous: Actions

Adding Actions to Containers

JMenu, JToolBar and JPopupMenu accept actions with their add() methods (See Fig. [*]).

When the action is added:

The Action is then paired with the New component in 2 ways(See Fig. [*]):



Dave Marshall
4/14/1999