Package org.jped.base.editor.configuration

Examples of org.jped.base.editor.configuration.ConfigurationPanel


    }

    public void actionPerformed(ActionEvent e) {
        JaWEController jcon = (JaWEController) jawecomponent;
        final JDialog d = new JDialog();
        final ConfigurationPanel config = new ConfigurationPanel();
        JButton btnOk = new JButton("ok");
        JButton btnCancel = new JButton("cancel");
        JPanel buttons = new JPanel();

        System.out.println("action performed " + e.getActionCommand());

        d.getContentPane().setLayout(new BoxLayout(d.getContentPane(), BoxLayout.Y_AXIS));
        buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
        buttons.add(btnOk);
        buttons.add(btnCancel);

        btnOk.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                config.applyConfig();
                d.setVisible(false);
                d.dispose();
            }
        });
        btnCancel.addActionListener(new ActionListener() {
View Full Code Here

TOP

Related Classes of org.jped.base.editor.configuration.ConfigurationPanel

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.