Examples of addActionListener()


Examples of net.laubenberger.bogatyr.view.swing.Button.addActionListener()

    pb.setIndeterminate(true);
    panel.add(pb, BorderLayout.CENTER);

    final JButton button = new Button(localizer.getValue(HelperResource.RES_LABEL_CANCEL_TASK), view.getController()
        .getScaledIcon(Icon.CANCEL), localizer.getTooltip(HelperResource.RES_LABEL_CANCEL_TASK));
    button.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(final ActionEvent e) {
        task.getWorker().cancel(true);
      }
View Full Code Here

Examples of net.laubenberger.bogatyr.view.swing.MenuItemRadioButton.addActionListener()

    });

    for (final Language language : list) {
      final JMenuItem item = new MenuItemRadioButton(language.getName(localizer.getLocale()));
      item.setIcon(controller.getScaledIcon(new ScalableIconImpl(language.getIcon())));
      item.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(final ActionEvent e) {
          localizer.setLocale(language.getLocale());
          data.setLanguage(language);
        }
View Full Code Here

Examples of net.pms.newgui.CustomJButton.addActionListener()

      }
    });
    builder.add(noskip, FormLayoutUtil.flip(cc.xy(1, 5), colSpec, orientation));

    CustomJButton button = new CustomJButton(Messages.getString("MEncoderVideo.29"));
    button.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        JPanel codecPanel = new JPanel(new BorderLayout());
        final JTextArea textArea = new JTextArea();
        textArea.setText(configuration.getMencoderCodecSpecificConfig());
View Full Code Here

Examples of net.sf.jftp.gui.tasks.BookmarkItem.addActionListener()

        x.setDirectory(d);

        //bookmarks
        current.add(x);
        marks.put(x.getLabel(), x);
        x.addActionListener(this);
    }

    //*** Where changes to the file menu are made (iniitalization done here too)
    public void resetFileItems()
    {
View Full Code Here

Examples of net.sourceforge.aprog.swing.LanguageComboBox.addActionListener()

    public static final JComboBox newLanguageComboBox() {
    checkAWT();

        final JComboBox result = new LanguageComboBox(Translator.getDefaultTranslator());

        result.addActionListener(new ActionListener() {

            @Override
            public final void actionPerformed(final ActionEvent event) {
                final Component root = SwingUtilities.getRoot(result);
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.TestGanttRolloverButton.addActionListener()

        tfWebLink = new JTextField();
        JButton bWeb = new TestGanttRolloverButton(new ImageIcon(getClass()
                .getResource("/icons/web_16.gif")));
        bWeb.setToolTipText(GanttProject.getToolTip(language
                .getText("openWebLink")));
        bWeb.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                // link to open the web link
                if (!BrowserControl.displayURL(tfWebLink.getText())) {
                    GanttDialogInfo gdi = new GanttDialogInfo(null,
                            GanttDialogInfo.ERROR, GanttDialogInfo.YES_OPTION,
View Full Code Here

Examples of nextapp.echo2.app.Button.addActionListener()

        switch (controlConfiguration) {
        case CONTROLS_OK:
            button = new Button(Messages.getString("Generic.Ok"), Styles.ICON_24_YES);
            button.setStyleName("ControlPane.Button");
            button.setActionCommand(COMMAND_OK);
            button.addActionListener(actionProcessor);
            controlsRow.add(button);
            break;
        case CONTROLS_YES_NO:
            button = new Button(Messages.getString("Generic.Yes"), Styles.ICON_24_YES);
            button.setStyleName("ControlPane.Button");
View Full Code Here

Examples of nextapp.echo2.app.CheckBox.addActionListener()

            switch (column) {
                case 0:
                    if (selectable) {
                        final CheckBox checkBox = new CheckBox("");
                        checkBox.setSelected((Boolean) value);
                        checkBox.addActionListener(new ActionListener() {

                            public void actionPerformed(ActionEvent arg0) {
                                if (checkBox.isSelected())
                                    tableModel.selectInvoice(invoice);
                                else
View Full Code Here

Examples of nextapp.echo2.app.ListBox.addActionListener()

        }
        componentSamplerColumn.add(table);
       
        ListBox listBox = new ListBox(ListBoxTest.NUMBERS);
        if (launchModals) {
            listBox.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    getApplicationInstance().getDefaultWindow().getContent().add(createComponentSamplerModalTestWindow());
                }
            });
        }
View Full Code Here

Examples of nextapp.echo2.app.PasswordField.addActionListener()

            }
        });
        controlsColumn.addButton("Add ActionListener", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                textField.addActionListener(actionListener);
                passwordField.addActionListener(actionListener);
                textArea.addActionListener(actionListener);
            }
        });
        controlsColumn.addButton("Remove ActionListener", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
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.