public class appletMenu extends Applet
{
private JDesktopPane theDesktop;
Button teste = new Button(“teste”);
public void start()
{
// MenuBar bar = new MenuBar();
MenuBar bar = new MenuBar();
Menu addMenu = new Menu( “File” );
MenuItem newFrame = new MenuItem( “Internal Frame” );
Baixando o velho tutorial de AWT da Sun, você pode encontrar a seguinte explicação:
The applet is implemented as a button that brings up the window showing the components. The window is necessary because the program includes a menu, and menus can be used only in windows. The program has a main() method so it can run as an application. The AppletButton class provides an applet framework for the window. AppletButton is a highly configurable applet that’s discussed on the following pages: Deciding Which Parameters to Support(in the Writing Applets trail) and Writing the Code to Support Parameters(in the Writing Applets trail).
Ou seja, um Applet não pode ter menus, mas um JApplet pode ter.