Problemas com meu e applet

Por motivos operacionais estou usando o java1.3…

e estou implementando da seguinte forma:

import java.applet.;
import java.awt.
;
import java.awt.event.;
import javax.swing.
;

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” );

bar.add(addMenu);
addMenu.add(newFrame);
setMenuBar(newFrame);
  
 addMenu.add( newFrame );

}
}

Quando uso o applet…o menu nao aparece…quando faco com o JApplet fica ok…mas por problemas de implementacao preciso usar o Applet… :oops:

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.