Can I use menus and a menu bar in an applet?

John Zukowski

AWT applets (those that subclass java.applet.Applet) cannot include an AWT MenuBar. Swing applets (those that subclass javax.swing.JApplet) can use the JMenuBar. To display menus in an AWT you would either need to create an external Frame to place them in or create your own custom components that simulated the behavior of menus on menu bars.