Examples of doClick()


Examples of javax.swing.JButton.doClick()

        panel.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                if (e.getSource() instanceof MouseEvent && MouseUtils.isDoubleClick(((MouseEvent) e.getSource()))) {
                    // click button and the finish dialog with selected class
                    okButton.doClick();
                } else {
                    okButton.setEnabled(panel.getSelectedMainClass() != null);
                }
            }
        });
View Full Code Here

Examples of javax.swing.JButton.doClick()

    // on enter in password field, save or login
    passwordField.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent event) {
        save.doClick();
      }
    });

    JPanel controls = new JPanel();
    controls.add(cancel);
View Full Code Here

Examples of javax.swing.JButton.doClick()

          }
        }

        // Terminate progress
        if (!stopSimulation) {
          button.doClick();
        }
        frame.dispose();
      }
    }.start();
  }
View Full Code Here

Examples of javax.swing.JButton.doClick()

                   
                    Field createButtonField = dialogClass.getDeclaredField("create");
                    createButtonField.setAccessible(true);
                    JButton createButton = (JButton) createButtonField.get(dialog);
                    createButton.setEnabled(true);
                    createButton.doClick();
                   
                    Field confirmed = dialogClass.getDeclaredField("confirm");
                    confirmed.setAccessible(true);
                    boolean c = confirmed.getBoolean(dialog);
                   
View Full Code Here

Examples of javax.swing.JCheckBox.doClick()

    final JCheckBox yesCheckBox = (JCheckBox)TestUtilities.findComponent(view, JCheckBox.class);
    assertFalse("Check box is selected", yesCheckBox.isSelected());
    // Select the check box in second step view
    tester.invokeAndWait(new Runnable() {
        public void run() {
          yesCheckBox.doClick();
        }
      });
    // Check the check box is selected and next button is enabled
    assertTrue("Check box isn't selected", yesCheckBox.isSelected());
    assertTrue("Next button isn't enabled", nextFinishOptionButton.isEnabled());
View Full Code Here

Examples of javax.swing.JCheckBox.doClick()

    for (Entry<SolverAlgorithm, JCheckBox> e : this.algCheckBoxes.entrySet()) {
      SolverAlgorithm algo = e.getKey();
      boolean selected = (data.getWhatifAlgorithms().contains(algo));
      JCheckBox checkbox = e.getValue();
      if ((selected && !checkbox.isSelected()) || (!selected && checkbox.isSelected())) {
        checkbox.doClick();
      }
      if (!data.isClosed()) {
        checkbox.setEnabled(false);
      }
      if (!algo.isExact()) {
View Full Code Here

Examples of javax.swing.JCheckBox.doClick()

    blueScreenSettings.add(new JLabel(Messages.getString("Color")));
    blueScreenSettings.add(blueScreenColor);
   
    add(blueScreenSettings, BorderLayout.CENTER);
   
    activated.doClick();
   
    PreProcess preProcess = new PreProcess(){
      @Override
      public BufferedImage process(BufferedImage img) {
        if(Settings.getPropertyBoolean(ConstantKeys.bluescreen_activ)){
View Full Code Here

Examples of javax.swing.JCheckBox.doClick()

       
        // Act as if user changed a property
        switch (lastPropertyDescriptor.getVisualControlDescriptor()) {
        case CheckBox: {
            JCheckBox checkBox = findLastComponentOfType(infoView, JCheckBox.class);
            checkBox.doClick();
            break;
        }
        case ComboBox: {
            @SuppressWarnings("rawtypes")
            JComboBox comboBox = findLastComponentOfType(infoView, JComboBox.class);
View Full Code Here

Examples of javax.swing.JCheckBoxMenuItem.doClick()

            return;
          }
          if (checkBox.isSelected()) {
            return;
          }
          checkBox.doClick();
        }
      });
    }

    /* Debugging - Break on repaints outside EDT */
 
View Full Code Here

Examples of javax.swing.JCheckBoxMenuItem.doClick()

    JMenuItem menuItem = (JMenuItem) testMenu.getMenuComponent(3);
    JCheckBoxMenuItem checkBoxMenuItem = (JCheckBoxMenuItem) menuItem;
    Action action = menuItem.getAction();
    Assert.assertNotNull(action);
    checkBoxMenuItem.doClick();
   
    testMenu.fireMenuDeselected();
    resetTargetComponent(housingA);
    access.setPlatform(null);
  }
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.