• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javaprepare: can Menu class be added to a Frame component??

 
Jenny Hua
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in javaprepare mock test: http://www.javaprepare.com/quests/awt_q.html
question#5: Which classes can be added to a Frame component.
The answer doesn't include Menu, why ? as Frame definition, Frames have title bars, icons, and menus.
Thank you in advance!
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jenny,
You can add a MenuBar to a Frame or a pop-up menu but not a Menu.
Hope that helps.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic