Menu Example (JDK1.1)
by Michael Thomas
(Tutorial Home Page)
- The source.
- This example will only run as a Java application. This example will
work in a JDK 1.1 and greater environment. You will need to download
the code, compile and run.
- Menu's & Applets - Since setMenuBar() method is not
located in java.applet.Applet (or it's super classes) you cannot use Java's
java.awt.Menu classes in an Applet. setMenuBar() resides in
java.awt.Frame and you cannot add a Frame to an Applet container because you
cannot add a window to a container. You'll have to create your own
Menu in Applet (does not work) (JDK1.1)
- This is my attempts at getting Menu's to work in an Applet. Summary
- You cannot place Java menu's in an Applet - only Applications.
Does not work as an applet!