FileDocCategorySizeDatePackage
MenuBarDemo.javaAPI DocExample633Mon Jan 09 11:02:00 GMT 2006None

MenuBarDemo

public class MenuBarDemo extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        System.setProperty ("apple.laf.useScreenMenuBar", "true");
    
        JFrame frame = new JFrame ("Menu Bar Demo");
        JMenuBar bar = new JMenuBar();
        JMenu fileMenu = new JMenu ("File");
        JMenu editMenu = new JMenu ("Edit");
        JMenu helpMenu = new JMenu ("Help");
        bar.add (fileMenu);
        bar.add (editMenu);
        bar.add (helpMenu);
        frame.setSize (300, 150);
        frame.setJMenuBar (bar);
        frame.setVisible (true);