Package javax.swing

Examples of javax.swing.JRadioButton


        checkPanel.add(lessthanequalButton);
        return checkPanel;
    }

    private JRadioButton createComparatorButton(String name, int value, ButtonGroup group) {
        JRadioButton button = new JRadioButton(name);
        button.setActionCommand(String.valueOf(value));
        button.addActionListener(this);
        group.add(button);
        return button;
    }
View Full Code Here


    private JPanel makeSourcePanel() {
        JPanel panel = new JPanel();
        panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("regex_source"))); //$NON-NLS-1$

        useBody = new JRadioButton(JMeterUtils.getResString("regex_src_body")); //$NON-NLS-1$
        useUnescapedBody = new JRadioButton(JMeterUtils.getResString("regex_src_body_unescaped")); //$NON-NLS-1$
        useHeaders = new JRadioButton(JMeterUtils.getResString("regex_src_hdrs")); //$NON-NLS-1$
        useURL = new JRadioButton(JMeterUtils.getResString("regex_src_url")); //$NON-NLS-1$
        useCode = new JRadioButton(JMeterUtils.getResString("assertion_code_resp")); //$NON-NLS-1$
        useMessage = new JRadioButton(JMeterUtils.getResString("assertion_message_resp")); //$NON-NLS-1$

        group = new ButtonGroup();
        group.add(useBody);
        group.add(useUnescapedBody);
        group.add(useHeaders);
View Full Code Here

     */
    private JPanel createFieldPanel() {
        JPanel panel = new JPanel();
        panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("assertion_resp_field"))); //$NON-NLS-1$

        responseStringButton = new JRadioButton(JMeterUtils.getResString("assertion_text_resp")); //$NON-NLS-1$
        urlButton = new JRadioButton(JMeterUtils.getResString("assertion_url_samp")); //$NON-NLS-1$
        responseCodeButton = new JRadioButton(JMeterUtils.getResString("assertion_code_resp")); //$NON-NLS-1$
        responseMessageButton = new JRadioButton(JMeterUtils.getResString("assertion_message_resp")); //$NON-NLS-1$
        responseHeadersButton = new JRadioButton(JMeterUtils.getResString("assertion_headers")); //$NON-NLS-1$

        ButtonGroup group = new ButtonGroup();
        group.add(responseStringButton);
        group.add(urlButton);
        group.add(responseCodeButton);
View Full Code Here

        JPanel panel = new JPanel();
        panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("assertion_pattern_match_rules"))); //$NON-NLS-1$

        ButtonGroup group = new ButtonGroup();

        containsBox = new JRadioButton(JMeterUtils.getResString("assertion_contains")); //$NON-NLS-1$
        group.add(containsBox);
        containsBox.setSelected(true);
        panel.add(containsBox);

        matchesBox = new JRadioButton(JMeterUtils.getResString("assertion_matches")); //$NON-NLS-1$
        group.add(matchesBox);
        panel.add(matchesBox);

        equalsBox = new JRadioButton(JMeterUtils.getResString("assertion_equals")); //$NON-NLS-1$
        group.add(equalsBox);
        panel.add(equalsBox);

        substringBox = new JRadioButton(JMeterUtils.getResString("assertion_substring")); //$NON-NLS-1$
        group.add(substringBox);
        panel.add(substringBox);

        notBox = new JCheckBox(JMeterUtils.getResString("assertion_not")); //$NON-NLS-1$
        panel.add(notBox);
View Full Code Here

        assertionPanel.add(docTypePanel);

        // format (HMTL, XHTML, XML)
        VerticalPanel formatPanel = new VerticalPanel();
        formatPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Format"));
        htmlRadioButton = new JRadioButton("HTML", true); //$NON-NLS-1$
        xhtmlRadioButton = new JRadioButton("XHTML", false); //$NON-NLS-1$
        xmlRadioButton = new JRadioButton("XML", false); //$NON-NLS-1$
        ButtonGroup buttonGroup = new ButtonGroup();
        buttonGroup.add(htmlRadioButton);
        buttonGroup.add(xhtmlRadioButton);
        buttonGroup.add(xmlRadioButton);
        formatPanel.add(htmlRadioButton);
View Full Code Here

        JPanel t2 = new JPanel();
        t2.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0));
        t2.setBorder(LINE_BORDER);
        JLabel label1 = new JLabel("Diagnostics:  ");
        t2.add(label1);
        rad1 = new JRadioButton("On", true);
        rad2 = new JRadioButton("Off");
        rad1.addActionListener(this);
        rad2.addActionListener(this);
        t2.add(rad1);
        t2.add(rad2);

        rad1.setToolTipText("Perform diagnostics monitoring");
        rad2.setToolTipText("Stop diagnostics monitoring");

        ButtonGroup bg1 = new ButtonGroup();
        bg1.add(rad1);
        bg1.add(rad2);
        menuBar.add(t2);

        // control options (part 3)
        JPanel t3 = new JPanel();
        t3.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0));
        t3.setBorder(LINE_BORDER);
        JLabel label2 = new JLabel("Cache:  ");
        t3.add(label2);
        rad3 = new JRadioButton("Enabled", true);
        rad4 = new JRadioButton("Disabled");
        rad3.addActionListener(this);
        rad4.addActionListener(this);
        t3.add(rad3);
        t3.add(rad4);
View Full Code Here

    public void actionPerformed(ActionEvent e) {
        Object tmp = e.getSource();

        if ( tmp instanceof JRadioButton ) {
            JRadioButton rb = (JRadioButton) tmp;

            if ( rb.isSelected() ) {
                if ( rb == rad1 ) {
                    if ( cache != null ) {
                        cache.enableDiagnostics();
                        memoryChart.start();
                    }
View Full Code Here

      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "synthesizer");
    t3.setTitleJustification(TitledBorder.CENTER);
        audioPanel.setBorder(t3);

        playFeatChunksButton = new JRadioButton("play feat chunks");
        playFeatChunksButton.setBackground(metaControlsColor);
        playFeatChunksButton.setSelected(true);
        playFeatChunksButton.setEnabled(false);
        audioPanel.add(playFeatChunksButton);
  playEDLChunksButton = new JRadioButton("play edl chunks");
        playEDLChunksButton.setBackground(metaControlsColor);
        playEDLChunksButton.setEnabled(false);
        audioPanel.add(playEDLChunksButton);
  playAddBlipsButton = new JCheckBox("add blips");
        playAddBlipsButton.setBackground(metaControlsColor);
View Full Code Here

  String soundFileName  = null;
 
  public void init()
    {
    segmenterTypeButtonGroup = new ButtonGroup();
    beatSegmenterButton = new JRadioButton("segment by beat");
    beatSegmenterButton.setSelected(true);
    eventSegmenterButton = new JRadioButton("segment by event");
    segmenterTypeButtonGroup.add(beatSegmenterButton);
    segmenterTypeButtonGroup.add(eventSegmenterButton);
    GUIPanel.add(beatSegmenterButton);
    GUIPanel.add(eventSegmenterButton);
   
View Full Code Here

    segmenterControlsPanel.add(inputFileNamePanel);
   
    JPanel detectorTypePanel = new JPanel();
    detectorTypePanel.setBackground(c);
    ButtonGroup onsetDetectorTypeGroup = new ButtonGroup();
    eventStyleButton = new JRadioButton("detect events");
    eventStyleButton.setBackground(c);
        eventStyleButton.addActionListener(this);
        eventStyleButton.setActionCommand("event_detector");
    beatStyleButton = new JRadioButton("detect beats");
    beatStyleButton.setBackground(c);
        beatStyleButton.addActionListener(this);
        beatStyleButton.setActionCommand("beat_detector");
    onsetDetectorTypeGroup.add(eventStyleButton);
    onsetDetectorTypeGroup.add(beatStyleButton);
View Full Code Here

TOP

Related Classes of javax.swing.JRadioButton

Copyright © 2018 www.massapicom. 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.