Package javax.swing

Examples of javax.swing.JButton.addActionListener()


          okPressed();
        }
      });

      JButton cancel = new JButton(Localizer.getLocalization(Localizer.I18N_CANCEL));
      cancel.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          cancelPressed();
        }
      });
View Full Code Here


     
      pb.addParagraph(mLocalizer.msg("parametersAdditional", "Additional commands"));
      pb.addRow();
      JButton additional = new JButton(mLocalizer.msg("Additional", "Define additional commands"));
     
      additional.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          AdditionalParams params = new AdditionalParams(mKonfigurator, mData);
          UiUtilities.centerAndShow(params);
        }
      });
View Full Code Here

        }
        setVisible(false);
      }
      });

    cancelBt.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent event) {
        mResultPluginArr = null;
        setVisible(false);
      }
    });
View Full Code Here

    ButtonBarBuilder2 builder = new ButtonBarBuilder2();
    builder.addGlue();
   
    JButton ok = new JButton(Localizer.getLocalization(Localizer.I18N_OK));
   
    ok.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        mReturnValue = JOptionPane.OK_OPTION;
        setVisible(false);
      }
    });
View Full Code Here

   
    getRootPane().setDefaultButton(ok);
   
    JButton cancel = new JButton (Localizer.getLocalization(Localizer.I18N_CANCEL));
   
    cancel.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        close();
      }
    });
   
View Full Code Here

    getRootPane().setDefaultButton(mOkButton);

    JButton cancel = new JButton(Localizer.getLocalization(Localizer.I18N_CANCEL));

    cancel.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        close();
      }
    });
View Full Code Here

    frmEverbox.getContentPane().add(panel, BorderLayout.CENTER);
    SpringLayout sl_panel = new SpringLayout();
    panel.setLayout(sl_panel);
   
    JButton btnNewButton_2 = new JButton("\u4FDD\u5B58\u914D\u7F6E");
    btnNewButton_2.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        saveConfig();
      }
    });
    panel.add(btnNewButton_2);
View Full Code Here

    rootpathField.setEnabled(false);
    panel.add(rootpathField);
    rootpathField.setColumns(10);
   
    JButton selectRootPathButton = new JButton("\u9009\u62E9");
    selectRootPathButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        JFileChooser jfc = new JFileChooser();
        jfc.setName("请选择本地存放文件夹");
        jfc.setDialogTitle("请选择本地存放文件夹");
        jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
View Full Code Here

    sl_panel.putConstraint(SpringLayout.WEST, label_12, 0, SpringLayout.WEST, lblNewLabel_1);
    panel.add(label_12);
   
    JButton button = new JButton("\u64A4\u9500\u4FEE\u6539");
    sl_panel.putConstraint(SpringLayout.NORTH, passwordField, 6, SpringLayout.SOUTH, button);
    button.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        resetConfig();
      }
    });
    sl_panel.putConstraint(SpringLayout.NORTH, button, 0, SpringLayout.NORTH, btnNewButton_2);
View Full Code Here

      JButton newBtn = new JButton(mLocalizer.msg("new", "New"), TVBrowserIcons.newIcon(TVBrowserIcons.SIZE_SMALL));
      JPanel southPn = new JPanel(new BorderLayout());
      southPn.add(newBtn, BorderLayout.WEST);

      add(southPn, cc.xyw(1, 3, 2));
      newBtn.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent event) {

          final Row row = new Row(0);
          mRows.add(row);
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.