• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

about Menu

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
jxam says MenuBar can't be attached to only Frame.I went through
Jaworski book but could get the satifactory explaination about that.If MenuBar can't be attached to only Frame to what else it
can be?
Also there's a constructor
Menu(String label, boolean tf)
In java docs it's given if tf is true the menu can be torn off.
If tried but couldn't get any tearing off.According to the docs
it's implementatiom dependent.I can't get it.
please help me.
Nasir
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to the API:
The MenuBar class encapsulates the platform's concept of a menu bar bound to a frame. In order to associate the menu bar with a
Frame object, call the frame's setMenuBar method.
Perhaps you are reading the meaning of the book incorrectly. Can you post exactly what it says?
 
reply
    Bookmark Topic Watch Topic
  • New Topic