Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Menu

 
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..
 
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
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic