• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MenuBar

 
Jian Yi
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question from Jxam.zip:
True or False.
Only Frames can contain menu bars or pull-down menus.
why is it false?
Thanks,
Jenny
 
Ricardo Cortes
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is false because an applet is not a subclass of the Frame class. So, an applet cannot have a menu-bar.
 
Steven Wong
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Ricardo:

The answer is false because an applet is not a subclass of the Frame class. So, an applet cannot have a menu-bar.

As what I know, pull-down menus are accessed via a menu bar, which can appear only on Frames.
So why is the above false?
I don't understand your answer, Ricardo.
Clement
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should be true. Only a Frame can accept a menu bar or a pull down menu. Unless, of course, you are talking about a JMenuBar!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic