Package javax.swing

Examples of javax.swing.AbstractButton.addActionListener()


     */
    protected AbstractButton getOnOffButton() {
        AbstractButton onoffButton = createOnOffButton();
        onoffButton.setSelectedIcon(layerOnIcon);
        onoffButton.setActionCommand(toggleLayerCmd);
        onoffButton.addActionListener(this);

        String interString = i18n.get(LayerPane.class,
                "onoffButton.tooltip",
                "Turn \"{0}\" layer on/off",
                layer.getName());
View Full Code Here


                    layer.getName());
        }
        paletteButton.setToolTipText(interString);

        paletteButton.setActionCommand(showPaletteCmd);
        paletteButton.addActionListener(this);
        return paletteButton;
    }

    /**
     * Used for the background LayerPanel marker.
View Full Code Here

      AbstractButton ab;
      AbstractGainButtonPanel p =
    (AbstractGainButtonPanel) getControlComponent();

      ab = p.getGainIncreaseButton();
            ab.addActionListener((ActionListener) listener);
      ab = p.getGainDecreaseButton();
            ab.addActionListener((ActionListener) listener);
        } else {
      throw new IllegalArgumentException("ActionListener required");
  }
View Full Code Here

    (AbstractGainButtonPanel) getControlComponent();

      ab = p.getGainIncreaseButton();
            ab.addActionListener((ActionListener) listener);
      ab = p.getGainDecreaseButton();
            ab.addActionListener((ActionListener) listener);
        } else {
      throw new IllegalArgumentException("ActionListener required");
  }
    }
View Full Code Here

      AbstractButton ab;
      AbstractGainButtonPanel p =
    (AbstractGainButtonPanel) getControlComponent();

      ab = p.getGainIncreaseButton();
            ab.addActionListener((ActionListener) listener);
      ab = p.getGainDecreaseButton();
            ab.addActionListener((ActionListener) listener);
        } else {
      throw new IllegalArgumentException("ActionListener required");
  }
View Full Code Here

    (AbstractGainButtonPanel) getControlComponent();

      ab = p.getGainIncreaseButton();
            ab.addActionListener((ActionListener) listener);
      ab = p.getGainDecreaseButton();
            ab.addActionListener((ActionListener) listener);
        } else {
      throw new IllegalArgumentException("ActionListener required");
  }
    }
View Full Code Here

          for(int i = levelMin; i <= levelMax; i++) {
            final AbstractButton jrb = new JRadioButtonMenuItem(Integer.toString(i));
            group.add(jrb);
            add(jrb);
            jrb.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ev) {
                  final StartLevel sls = (StartLevel)slTracker.getService();

                  final Bundle[] bl = getSelectedBundles();
View Full Code Here

            ButtonGroup group = new ButtonGroup();

            AbstractButton jrbn = new JRadioButtonMenuItem(Strings.get("menu_errordialoglevel_normal"));
            group.add(jrbn);
            add(jrbn);
            jrbn.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent ev) {
                System.setProperty("org.knopflerfish.desktop.errordialogfriendliness", "normal");
              }
            });
View Full Code Here

            });

            AbstractButton jrbm = new JRadioButtonMenuItem(Strings.get("menu_errordialoglevel_more"));
            group.add(jrbm);
            add(jrbm);
            jrbm.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent ev) {
                System.setProperty("org.knopflerfish.desktop.errordialogfriendliness", "more");
              }
            });
View Full Code Here

            });

            AbstractButton jrba = new JRadioButtonMenuItem(Strings.get("menu_errordialoglevel_advanced"));
            group.add(jrba);
            add(jrba);
            jrba.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent ev) {
                System.setProperty("org.knopflerfish.desktop.errordialogfriendliness", "advanced");
              }
            });
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.