• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to load Menu items dynamically

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic