Package org.apache.jmeter.gui.util

Examples of org.apache.jmeter.gui.util.HorizontalPanel


        hostBaseUrl = new JLabeledTextField("Base Url", 25);
        resource = new JLabeledTextField("Resource", 20);
        queryString = new JLabeledTextField("QueryString", 30);
        encoding = new JLabeledTextField("Content Encoding", 8);
        VerticalPanel panel = new VerticalPanel();
        HorizontalPanel panel1 = new HorizontalPanel();
        panel1.add(httpMethods);
        panel1.add(useKeepAlive);
        panel1.add(automaticRedirect);
        HorizontalPanel panel2 = new HorizontalPanel();
        panel2.add(hostBaseUrl);
        panel2.add(resource);
        HorizontalPanel panel3 = new HorizontalPanel();
        panel3.add(queryString);
        panel3.add(encoding);
        panel.add(panel1);
        panel.add(panel2);
        panel.add(panel3);
        return panel;
    }
View Full Code Here


    private JFileChooser saveFileChooser;

    public JmxPanel() {
        setBorder(BorderFactory.createTitledBorder("JMX"));
        HorizontalPanel jmxDataPanel = new HorizontalPanel();
        JLabel label = new JLabel("Url");
        jmxDataPanel.add(label);
        jmxUrl = new JTextField("service:jmx:rmi:///jndi/rmi://<host>:<port>/jmxrmi", 50);
        jmxDataPanel.add(jmxUrl);
        label = new JLabel("Memory");
        jmxDataPanel.add(label);
        usedMemoryType = new JComboBox(new String[] { JmxSampler.HEAP_MEM });
        // usedMemoryType = new JComboBox(new String[] { JmxSampler.HEAP_MEM,
        // JmxSampler.NON_HEAP_MEM});
        jmxDataPanel.add(usedMemoryType);
        samplingFrequency = new JLabeledTextField("Sampling Frequency (sec)", 5);
        jmxDataPanel.add(samplingFrequency);
        add(jmxDataPanel);
    }
View Full Code Here

    useKeepAlive.setName(ProxyControl.USE_KEEPALIVE);
    useKeepAlive.setSelected(true);
    useKeepAlive.addActionListener(this);
    useKeepAlive.setActionCommand(ProxyControl.USE_KEEPALIVE);

        HorizontalPanel panel = new HorizontalPanel();
        panel.add(label);
        panel.add(portField);

        panel.add(Box.createHorizontalStrut(10));
        panel.add(httpHeaders);

    panel.add(useKeepAlive);
    panel.add(addAssertions);

        return panel;
    }
View Full Code Here

        // Action listener will be added later
       
        JLabel label = new JLabel(JMeterUtils.getResString("proxy_target"));
        label.setLabelFor(targetNodes);
       
        HorizontalPanel panel = new HorizontalPanel();
        panel.add(label);
        panel.add(targetNodes);

    /* This listener subscription prevents freeing up the GUI when it's no longer in use
     * (e.g. on locale change)... plus causes some anoying NPEs in the GUI instance
     * created by the menu manager just to find out our name and which menus we
     * want to be in...
View Full Code Here

        groupingMode.setActionCommand(ProxyControl.GROUPING_MODE);

        JLabel label2 = new JLabel(JMeterUtils.getResString("grouping_mode"));
        label2.setLabelFor(groupingMode);
       
        HorizontalPanel panel = new HorizontalPanel();
        panel.add(label2);
        panel.add(groupingMode);
       
        return panel;       
    }
View Full Code Here

        classnameCombo.addActionListener(this);
        classnameCombo.setName(CLASSNAMECOMBO);
        classnameCombo.setEditable(false);
        label.setLabelFor(classnameCombo);
       
        HorizontalPanel panel = new HorizontalPanel();
        panel.add(label);
        panel.add(classnameCombo);

        return panel;
    }
View Full Code Here

    }

    private JPanel createOptionalTasksPanel()
    {
        // OPTIONAL TASKS
        HorizontalPanel optionalTasksPanel = new HorizontalPanel();
        optionalTasksPanel.setBorder(
            BorderFactory.createTitledBorder(
                BorderFactory.createEtchedBorder(),
                JMeterUtils.getResString("optional_tasks")));

        // RETRIEVE IMAGES
        JPanel retrieveImagesPanel = new JPanel();
        getImages =
            new JCheckBox(
                JMeterUtils.getResString("web_testing_retrieve_images"));
        retrieveImagesPanel.add(getImages);
        JPanel isMonitorPanel = new JPanel();
        isMon = new JCheckBox(
            JMeterUtils.getResString("monitor_is_title"));
        isMonitorPanel.add(isMon);
        optionalTasksPanel.add(retrieveImagesPanel);
    optionalTasksPanel.add(isMonitorPanel);
        return optionalTasksPanel;
    }
View Full Code Here

        add(makeTitlePanel(), BorderLayout.NORTH);

        JPanel mainPanel = new JPanel(new BorderLayout());

        // USER_INPUT
        HorizontalPanel durationPanel = new HorizontalPanel();
        durationPanel.setBorder(
            BorderFactory.createTitledBorder(
                BorderFactory.createEtchedBorder(),
                getDurationAttributesTitle()));

        durationPanel.add(
            new JLabel(JMeterUtils.getResString("duration_assertion_label")));

        duration = new JTextField(5);
        duration.addFocusListener(this);
        durationPanel.add(duration);

        mainPanel.add(durationPanel, BorderLayout.NORTH);
        add(mainPanel, BorderLayout.CENTER);
    }
View Full Code Here

    // USER_INPUT
    VerticalPanel assertionPanel = new VerticalPanel();
    assertionPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Tidy Settings"));

    //doctype
    HorizontalPanel docTypePanel = new HorizontalPanel();
    docTypeBox = new JComboBox(new Object[] { "omit", "auto", "strict", "loose" });
    docTypeBox.addFocusListener(this);
    //docTypePanel.add(new JLabel(JMeterUtils.getResString("duration_assertion_label")));
    docTypePanel.add(new JLabel("Doctype:"));
    docTypePanel.add(docTypeBox);
    assertionPanel.add(docTypePanel);

    //format (HMTL, XHTML, XML)
    VerticalPanel formatPanel = new VerticalPanel();
    formatPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Format"));
    htmlRadioButton = new JRadioButton("HTML", true);
    xhtmlRadioButton = new JRadioButton("XHTML", false);
    xmlRadioButton = new JRadioButton("XML", false);
    ButtonGroup buttonGroup = new ButtonGroup();
    buttonGroup.add(htmlRadioButton);
    buttonGroup.add(xhtmlRadioButton);
    buttonGroup.add(xmlRadioButton);
    formatPanel.add(htmlRadioButton);
    formatPanel.add(xhtmlRadioButton);
    formatPanel.add(xmlRadioButton);
    assertionPanel.add(formatPanel);

    //errors only
    errorsOnly = new JCheckBox("Errors only", false);
    errorsOnly.addFocusListener(this);
    errorsOnly.addActionListener(this);
    assertionPanel.add(errorsOnly);

    //thresholds
    HorizontalPanel thresholdPanel = new HorizontalPanel();
    thresholdPanel.add(new JLabel("Error threshold:"));
    errorThresholdField = new JTextField("0", 5);
    errorThresholdField.addFocusListener(this);
    thresholdPanel.add(errorThresholdField);
    thresholdPanel.add(new JLabel("Warning threshold:"));
    warningThresholdField = new JTextField("0", 5);
    warningThresholdField.addFocusListener(this);
    thresholdPanel.add(warningThresholdField);
    assertionPanel.add(thresholdPanel);

    //file panel
    filePanel = new FilePanel(JMeterUtils.getResString("file_visualizer_output_file"), ".txt");
    filePanel.addChangeListener(this);
View Full Code Here

    }

    private JPanel createOptionalTasksPanel()
    {
        // OPTIONAL TASKS
        HorizontalPanel optionalTasksPanel = new HorizontalPanel();
        optionalTasksPanel.setBorder(
            BorderFactory.createTitledBorder(
                BorderFactory.createEtchedBorder(),
                JMeterUtils.getResString("optional_tasks")));

        // RETRIEVE IMAGES
        JPanel retrieveImagesPanel = new JPanel();
        getImages =
            new JCheckBox(
                JMeterUtils.getResString("web_testing_retrieve_images"));
        retrieveImagesPanel.add(getImages);
        JPanel isMonitorPanel = new JPanel();
        isMon = new JCheckBox(
            JMeterUtils.getResString("monitor_is_title"));
        isMonitorPanel.add(isMon);
        optionalTasksPanel.add(retrieveImagesPanel);
    optionalTasksPanel.add(isMonitorPanel);
        return optionalTasksPanel;
    }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.gui.util.HorizontalPanel

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.