Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Menu

 
Doit
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please correct me if i am wrong..
1. Container can be added to container except windows(window,frame,dialog).
2. Menubar can only be added to Frames.
3. PopupMenu can be added to all Components.
4.PulldownMenu can be added to only Menubar or PulldownMenu.
5. MenuItem can have Menu,MenuItem
Now some clarifications please..
Menu can conatin ??
1.Menu 2.MenuSeperator 3. MenuItem 4.CheckboxMenuItem 5.Menubar
Menubar can contain?
1.Menu 2. Menubar 3.MenuItem

- Thanks
 
Doit
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Comeon..
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Doit,
I don't think Menu and Menubar can contain other Menubar. There are no methods that can add a Menubar to a Menu or Menubar in JDK1.3 API Doc. If you say Menubar can contain MenuItems because Menubar can cantain menus and MenuItems can be added to menus, I'd agree with you. So Menubar can contain
1.Menu 2.MenuSeperator 3. MenuItem 4.CheckboxMenuItemMenu 5.MenuShortcut
Also I don't think MenuItem can have Menu and MenuItem, because the MenuItem class definse a menu item that has a textual label, we cannot add a Menu or MenuItem object to a MenuItem object, but we do can add a Menu or MenuItem object to a Menu object.
Just my opinon!
Erin
 
Doit
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can u guys please have a look at this also....
- Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic