Create dynamic JMenuItem and handle its action separately
793886Mar 6 2009 — edited Mar 6 2009Hi all,
I am looking for a help in creating dynamic JMenuItems under JMenu.
I know that through a loop, I can add the JMenuItem under a JMenu. But how can I identify each JMenuItem object so that I can register the listener for each object and handle the action separately, when I click on each JMenuItem.
Any kindly help will be highly appreciated.
Sumode_v