• 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
 
Liar, liar, pants on fire! refreshing plug:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!