Package javax.swing

Examples of javax.swing.JCheckBox.addActionListener()


     
    final JCheckBox acceptButton = new JCheckBox(translator.getString("licensepanel.button.accept"));
   
    fireValidationEvent(false);
   
    acceptButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        LicensePanel.this.fireValidationEvent(acceptButton.isSelected());
      }
    });
   
View Full Code Here


    checkTimeSameClass.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        loggerParameters.boolTimeSameClass = new Boolean(checkTimeSameClass.isSelected());
      }
    });
    checkTimeAnyClass.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        loggerParameters.boolTimeAnyClass = new Boolean(checkTimeAnyClass.isSelected());
      }
    });
    filepathButton.addActionListener(new ActionListener() {
View Full Code Here

    actionPanel.add(indentButton);
    actionPanel.add(uploadButton);

    final JCheckBox lineWrapCB = new JCheckBox("Line wrap");

    lineWrapCB.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent arg0) {
        // textArea.setLineWrap(lineWrapCB.isSelected());
      }
    });
View Full Code Here

      roundRobinCheckBox.setName(ROUND_ROBIN);

      Boolean isChecked = (Boolean) current.getParameter(5).getValue();
      roundRobinCheckBox.setSelected(isChecked.booleanValue());

      roundRobinCheckBox.addActionListener(new RoundRobinAdapter());

      // the checkbox will be aligned to the left
      GridBagConstraints c = new GridBagConstraints();
      c.fill = GridBagConstraints.HORIZONTAL;
      c.weightx = 1.0;
View Full Code Here

      blockSpinner.setValue(sd.getForkBlock(stationKey));
      blockSpinner.setEnabled(true);
    }

    // Adds action listeners
    check.addActionListener(new ActionListener() {

      /**
       * Toggles block property
       */
      public void actionPerformed(ActionEvent e) {
View Full Code Here

     
      JCheckBox checkBox = new JCheckBox (algo.toString());
      checkBox.setName(algo.toString());

      final int index = i;
      checkBox.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          AbstractButton abstractButton = (AbstractButton) e.getSource();
          boolean selected = abstractButton.getModel().isSelected();
          SolverAlgorithm algorithm = SolverAlgorithm.fromString(abstractButton.getName());
          data.setWhatifAlgorithm(algorithm, selected);
View Full Code Here

        final TristateCheckBox tristateBox = new TristateCheckBox("Tristate checkbox (icon)", false);
        createTristate(tristateBox);
        final TristateCheckBox tristateBoxorig = new TristateCheckBox("Tristate checkbox (original)", true);
        createTristate(tristateBoxorig);
        final JCheckBox normalBox = new JCheckBox("Normal checkbox");
        normalBox.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                System.out.println(e);
            }
        });
View Full Code Here

                    name = name.substring(NAME_SAVE_PFX_LEN);
                    JCheckBox check = new JCheckBox(
                            JMeterUtils.getResString(RESOURCE_PREFIX + name)
                            ,((Boolean) methods[i].invoke(saveConfig, new Object[0])).booleanValue());
                    checkPanel.add(check, BorderLayout.NORTH);
                    check.addActionListener(this);
                    String actionCommand = NAME_SET_PREFIX + name; // $NON-NLS-1$
                    check.setActionCommand(actionCommand);
                    if (!functors.containsKey(actionCommand)) {
                        functors.put(actionCommand, new Functor(actionCommand));
                    }
View Full Code Here

        dragButton.addActionListener(this);
        dragButton.setMaximumSize(new Dimension(130, 30));

        JCheckBox boxAbsolute = new JCheckBox("Absolute");
        boxAbsolute.setActionCommand("abs");
        boxAbsolute.addActionListener(this);
        boxAbsolute.setSelected(true);

        JCheckBox box2 = new JCheckBox("Real");
        box2.setActionCommand("real");
        box2.addActionListener(this);
View Full Code Here

        boxAbsolute.addActionListener(this);
        boxAbsolute.setSelected(true);

        JCheckBox box2 = new JCheckBox("Real");
        box2.setActionCommand("real");
        box2.addActionListener(this);
        box2.setSelected(true);

        JCheckBox box3 = new JCheckBox("Imaginary");
        box3.setActionCommand("imag");
        box3.addActionListener(this);
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.