• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

MenuBar

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic