posted 22 years ago
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