<<< Menus and Actions | Index | A9 Menu Events >>> |
Menus provide single click interface to initiate user actions.
JMenuItems generate corresponding ActionEvents.
Menu clicks cause events to be generated.
As with push buttons, program uses action listeners to hook each JMenuItem.
mFileExit.addActionListener(mMenuFileExitListener);
where mMenuFileExitListener is an object that extends javax.swing.AbstractAction class.
<<< Menus and Actions | Index | A9 Menu Events >>> |