Package com.lightcrafts.ui.toolkit

Examples of com.lightcrafts.ui.toolkit.CoolButton.addActionListener()


//            }
//        );

        JButton asShot = new CoolButton();
        asShot.setText(LOCALE.get("AsShotButtonText"));
        asShot.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    Map<String, Double> sliders = raw.getAsShot();
                    for (String key : sliders.keySet()) {
                        double value = sliders.get(key);
View Full Code Here


        leftButton.setStyle( CoolButton.ButtonStyle.LEFT );
        rightButton.setStyle( CoolButton.ButtonStyle.RIGHT );

        leftButton.addActionListener( leftAction );
        rightButton.addActionListener( rightAction );

        add( leftButton );
        add( rightButton );
    }
View Full Code Here

                public void actionPerformed(ActionEvent e) {
                    browser.goBack();
                }
            }
        );
        btnForward.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    browser.goForward();
                }
            }
View Full Code Here

            if (entry.hasDefaultValue()) {
                JButton button = new CoolButton();
                button.setIcon(icon);
                button.setToolTipText(LOCALE.get("DefaultButtonToolTip"));
                buttons.put(entry, button);
                button.addActionListener(
                    new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            entry.setDefaultValue(meta);
                            model.commit();
                            table.repaint();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.