\\ //<BR>~\// irucidal~
\\ //<BR>~\// irucidal~
Frame is not the only component that can have menu bars...
Especially if you look int Java Swing.
Here is an excerpt from Java Cram by Bill Brogden:
"Adding menus to an aplication requires a class that implements
the MenuContainer interface. The classes in the java.awt package
that implement MenuContainer are Component, Frame, Menu,
and MenuBar, so practically anything can host a menu."
Regards,
Khalid
\\ //<BR>~\// irucidal~
\\ //<BR>~\// irucidal~
You are right, the other containers do not provide functions for
setting the Menu Bars. Potentially, however, you are able to
code menu bars into the other components through creating a class
that will add the Menu Bar capabilities (Just as Frame does to
the Window Class).
Regards,
Khalid
\\ //<BR>~\// irucidal~
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|