i'm confused about the question "Where can menu bars be added?" from my readings, it said that any object that implements MenuContainer interface can have a menubar, since Component implements MenuContainer, all components could have menubars one mock exam gave me this answer.. however, in other mock exams, and i believe RH - they say that only frames can have menu bars.... confused? what is the real answer? thanks...
Joined: Sep 16, 2000
Marie, There is nothing like MenuContainer interface. MenuComponent class is the super class of all menu related components. Incidentally this is an abstract class. MenuBar, MenuItem are subclasses of MenuComponent. Yes. Frame is the only component that can have menubar.
so let me get this straight... the difference in RH and Bill Brogden's is the phrasing of the question... MenuBars can only be added to Frames but menus, in the form of a menu bar (misleading) or a pop-up menu (this was the key word in the question) may be added to any subclass of Component