Package shag.menu

Examples of shag.menu.WindowMenu


        mi.setActionCommand(USEFUL_TABLE);
        mi.addActionListener(this);
        m.add(mi);

        mb.add(m);
        mb.add(new WindowMenu(this));
        return mb;
    }
View Full Code Here


    }
   
    private JFrame createFrame(String name) {
        JFrame result = new JFrame(name);
        JMenuBar mb = new JMenuBar();
        mb.add(new WindowMenu(this));
        result.setJMenuBar(mb);
        JPanel content = new JPanel(new BorderLayout());
        content.add(new JLabel("This is " + name + ".", JLabel.CENTER), BorderLayout.CENTER);
        result.setContentPane(content);
        result.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
View Full Code Here

        JMenu m = new JMenu("File");
        JMenuItem mi = new JMenuItem("New");
        mi.addActionListener(this);
        m.add(mi);
        mb.add(m);
        mb.add(new WindowMenu(this));
        result.setJMenuBar(mb);

        // Finish off the window.
        result.setContentPane(p);
        result.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
View Full Code Here

        mi.setActionCommand(DemoType.rollYourOwn.name());
        mi.addActionListener(this);
        m.add(mi);

        mb.add(m);
        mb.add(new WindowMenu(this));
        return mb;
    }
View Full Code Here

        mi.setActionCommand(DemoType.SEARCHING.name());
        mi.addActionListener(this);
        m.add(mi);

        mb.add(m);
        mb.add(new WindowMenu(this));
        return mb;
    }
View Full Code Here

TOP

Related Classes of shag.menu.WindowMenu

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.