2nd way :-
1. First crate menu bar object.
2. get all menu names from .properties file using for loop.
3. create all menu objects.
4. then check whether given menu has any submenus or not ???
5. if it has, then get names of all from .properties file, create all menu items objects & add it to menu object.
& so on...
Can you tell me which way is better and most widely used for adding menubar for any type (small / large) of an application?
Thanks in advance.
This message was edited 1 time. Last update was at by anuj thite
2nd way :-
1. First crate menu bar object.
2. get all menu names from .properties file using for loop.
3. create all menu objects.
4. then check whether given menu has any submenus or not ???
5. if it has, then get names of all from .properties file, create all menu items objects & add it to menu object.
Having a properties file makes sense only if you want to modify the menu labels from outside the application. Why are you considering the properties file approach.
Menus are usually build inside the application.