Creating menus dynamically...is it possible?
Is it possible to have a menu on menubar say Edit...
when user clicks it, my program would decide what will the menuitems be. This could also be done by updating the menu all the time that it changes but program will be faster and easier to write if it's decided when user clicks it...
It is possible to add and remove menu items during program execution.
You can also add an menu listener to the menu to catch the user's click,
but the problem might be, that no one can say if your listener will be called
before the menu's own listener, which will show the popup window (the
menu items). So, if your listener is called first, you can add or remove
some items, but if the popup shows first, you might corrupt the menu.
Oliver