Search in sources :

Example 21 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.

the class JMSPublisherGui method init.

/**
     * init() adds jndiICF to the mainPanel. The class reuses logic from
     * SOAPSampler, since it is common.
     */
private void init() {
    // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
    setLayout(new BorderLayout());
    setBorder(makeBorder());
    add(makeTitlePanel(), BorderLayout.NORTH);
    JPanel mainPanel = new VerticalPanel();
    add(mainPanel, BorderLayout.CENTER);
    mainPanel.add(useProperties);
    mainPanel.add(jndiICF);
    mainPanel.add(urlField);
    mainPanel.add(jndiConnFac);
    mainPanel.add(createDestinationPane());
    mainPanel.add(createAuthPane());
    mainPanel.add(createPriorityAndExpiration());
    mainPanel.add(jmsErrorReconnectOnCodes);
    mainPanel.add(iterations);
    //$NON-NLS-1$
    jmsPropertiesPanel = new JMSPropertiesPanel();
    mainPanel.add(jmsPropertiesPanel);
    configChoice.setLayout(new BoxLayout(configChoice, BoxLayout.X_AXIS));
    mainPanel.add(configChoice);
    msgChoice.setLayout(new BoxLayout(msgChoice, BoxLayout.X_AXIS));
    mainPanel.add(msgChoice);
    fileEncoding = new // $NON-NLS-1$
    JLabeledChoice(// $NON-NLS-1$
    JMeterUtils.getResString("content_encoding") + "  ", PublisherSampler.getSupportedEncodings(), true, false);
    fileEncoding.setLayout(new BoxLayout(fileEncoding, BoxLayout.X_AXIS));
    fileEncoding.add(Box.createHorizontalGlue());
    mainPanel.add(fileEncoding);
    mainPanel.add(messageFile);
    mainPanel.add(randomFile);
    JPanel messageContentPanel = new JPanel(new BorderLayout());
    messageContentPanel.add(new JLabel(JMeterUtils.getResString("jms_text_area")), BorderLayout.NORTH);
    messageContentPanel.add(JTextScrollPane.getInstance(textMessage), BorderLayout.CENTER);
    mainPanel.add(messageContentPanel);
    useProperties.addChangeListener(this);
    useAuth.addChangeListener(this);
    configChoice.addChangeListener(this);
    msgChoice.addChangeListener(this);
}
Also used : JPanel(javax.swing.JPanel) VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel) BorderLayout(java.awt.BorderLayout) BoxLayout(javax.swing.BoxLayout) JLabel(javax.swing.JLabel)

Example 22 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.

the class LdapConfigGui method createSearchPanel.

/**
     * This will create the Search panel in the LdapConfigGui.
     */
private JPanel createSearchPanel() {
    VerticalPanel searchPanel = new VerticalPanel();
    searchPanel.add(createLabelPanel("search_base", searchbase));
    searchPanel.add(createLabelPanel("search_filter", searchfilter));
    return searchPanel;
}
Also used : VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel)

Example 23 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.

the class HttpDefaultsGui method createOptionalTasksPanel.

protected JPanel createOptionalTasksPanel() {
    // OPTIONAL TASKS
    final JPanel checkBoxPanel = new VerticalPanel();
    checkBoxPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString(// $NON-NLS-1$
    "optional_tasks")));
    // Use MD5
    // $NON-NLS-1$
    useMD5 = new JCheckBox(JMeterUtils.getResString("response_save_as_md5"));
    checkBoxPanel.add(useMD5);
    return checkBoxPanel;
}
Also used : JCheckBox(javax.swing.JCheckBox) JPanel(javax.swing.JPanel) VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel)

Example 24 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.

the class JUnitTestSamplerGui method createClassPanel.

private JPanel createClassPanel() {
    JLabel label = //$NON-NLS-1$
    new JLabel(JMeterUtils.getResString("protocol_java_classname"));
    classnameCombo = new JComboBox<>();
    classnameCombo.addActionListener(this);
    classnameCombo.setEditable(false);
    label.setLabelFor(classnameCombo);
    methodName = new JComboBox<>();
    methodName.addActionListener(this);
    methodLabel.setLabelFor(methodName);
    setupClasslist();
    VerticalPanel panel = new VerticalPanel();
    panel.add(junit4);
    junit4.addItemListener(this);
    panel.add(filterpkg);
    filterpkg.addChangeListener(this);
    panel.add(label);
    panel.add(classnameCombo);
    constructorLabel.setText("");
    panel.add(constructorLabel);
    panel.add(methodLabel);
    panel.add(methodName);
    panel.add(successMsg);
    panel.add(successCode);
    panel.add(failureMsg);
    panel.add(failureCode);
    panel.add(errorMsg);
    panel.add(errorCode);
    panel.add(doSetup);
    panel.add(appendError);
    panel.add(appendExc);
    panel.add(createInstancePerSample);
    return panel;
}
Also used : VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel) JLabel(javax.swing.JLabel)

Example 25 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.

the class FtpConfigGui method init.

private void init() {
    // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
    setLayout(new BorderLayout(0, 5));
    if (displayName) {
        setBorder(makeBorder());
        add(makeTitlePanel(), BorderLayout.NORTH);
    }
    // MAIN PANEL
    VerticalPanel mainPanel = new VerticalPanel();
    JPanel serverPanel = new HorizontalPanel();
    serverPanel.add(createServerPanel(), BorderLayout.CENTER);
    serverPanel.add(getPortPanel(), BorderLayout.EAST);
    mainPanel.add(serverPanel);
    mainPanel.add(createRemoteFilenamePanel());
    mainPanel.add(createLocalFilenamePanel());
    mainPanel.add(createLocalFileContentsPanel());
    mainPanel.add(createOptionsPanel());
    add(mainPanel, BorderLayout.CENTER);
}
Also used : JPanel(javax.swing.JPanel) VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel) BorderLayout(java.awt.BorderLayout) HorizontalPanel(org.apache.jmeter.gui.util.HorizontalPanel)

Aggregations

VerticalPanel (org.apache.jmeter.gui.util.VerticalPanel)46 BorderLayout (java.awt.BorderLayout)30 JPanel (javax.swing.JPanel)23 JCheckBox (javax.swing.JCheckBox)13 JLabel (javax.swing.JLabel)12 HorizontalPanel (org.apache.jmeter.gui.util.HorizontalPanel)11 JTextField (javax.swing.JTextField)9 Dimension (java.awt.Dimension)5 JTabbedPane (javax.swing.JTabbedPane)5 JLabeledTextField (org.apache.jorphan.gui.JLabeledTextField)5 BoxLayout (javax.swing.BoxLayout)4 JButton (javax.swing.JButton)4 Border (javax.swing.border.Border)3 EmptyBorder (javax.swing.border.EmptyBorder)3 LoginConfigGui (org.apache.jmeter.config.gui.LoginConfigGui)3 FlowLayout (java.awt.FlowLayout)2 Font (java.awt.Font)2 GridBagConstraints (java.awt.GridBagConstraints)2 GridBagLayout (java.awt.GridBagLayout)2 ArrayList (java.util.ArrayList)2