Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to load Menu items dynamically

 
mohana konakanchi
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I need to load(populate) Menu Items dynamically by reading the item names from a txt file.
On click of some menu Item I need to
instantiate/popup/show corresponding Dialog.
(it's customised dialog not a JOption dialog)
I know how to populating menu items. How can I implement action listener which can instantiate corresponding class of Dialog.
I can not create reference for every dialog(since I do not know how many dialogs exist)
thanks in advance
Mohana
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic