• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to load Menu items dynamically  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!