• Post Reply Bookmark Topic Watch Topic
  • New Topic

HelpMenu

 
Serge Plourde
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the java.awt package there are the setHelpMenu()
and getHelpMeu()methods.
Why do those two method exist? In other words why and how are
they used?
Say:
MenuBar mb = new MenuBar();
Menu fileMenu = new FileMenu();
Menu myHelp = new MyHelpMenu();
mb.add(fileMenu);
mb.add(myHelp);
...
Why use
mb.setHelpMenu(myHelp);
?
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Serge,
As we all know that it is the convention the help menu is the last menu in any application. that's why sun has given a function which sets the help menu i.e. the mnu that is added using setHelpmenu(helpmenu)function will appear at the end of the menu bar.
regards
deekasha
 
Serge Plourde
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, if we setHelpMenu(myHelp), Java is automatically keeping this
menu as the last (rightmost) menu of the menubar? Even if we add
other menus afterwards?
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes exactly
regards
deekasha
 
Serge Plourde
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Deekasha.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!