If you extended JApplet, you can use the setJMenuBar() method:


public void init()
{
JMenuBar myMenu = new JMenuBar();
JMenu main = new JMenu("menu1");
JMenuItem item = new...