Adding ActionListener to JMenu
843804Sep 23 2004 — edited Oct 12 2004
Is it possible to add actionListener to Jmenu object
for example File, Format, Exit these are Menus added in the menuBar not menu items
on clicking the Exit the frame shuld get closed.
For detecting the action clicked on the Menu shall i use actionListener?
I have tried using MenuListener its getting invoked on selection
I dont want it on selection , I want the frame to be displayed only on clicking that menu.