Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!