Search in sources :

Example 71 with JTextField

use of javax.swing.JTextField in project jmeter by apache.

the class HttpTestSampleGui method getProxyUserPanel.

private JPanel getProxyUserPanel() {
    proxyUser = new JTextField(5);
    // $NON-NLS-1$
    JLabel label = new JLabel(JMeterUtils.getResString("username"));
    label.setLabelFor(proxyUser);
    label.setFont(FONT_SMALL);
    JPanel panel = new JPanel(new BorderLayout(5, 0));
    panel.add(label, BorderLayout.WEST);
    panel.add(proxyUser, BorderLayout.CENTER);
    return panel;
}
Also used : JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField)

Example 72 with JTextField

use of javax.swing.JTextField in project jmeter by apache.

the class HttpMirrorControlGui method createPortPanel.

private JPanel createPortPanel() {
    portField = new JTextField(HttpMirrorControl.DEFAULT_PORT_S, 8);
    portField.setName(HttpMirrorControl.PORT);
    // $NON-NLS-1$
    JLabel label = new JLabel(JMeterUtils.getResString("port"));
    label.setLabelFor(portField);
    maxPoolSizeField = new JTextField(Integer.toString(HttpMirrorControl.DEFAULT_MAX_POOL_SIZE), 8);
    maxPoolSizeField.setName(HttpMirrorControl.MAX_POOL_SIZE);
    // $NON-NLS-1$
    JLabel mpsLabel = new JLabel(JMeterUtils.getResString("httpmirror_max_pool_size"));
    mpsLabel.setLabelFor(maxPoolSizeField);
    maxQueueSizeField = new JTextField(Integer.toString(HttpMirrorControl.DEFAULT_MAX_QUEUE_SIZE), 8);
    maxQueueSizeField.setName(HttpMirrorControl.MAX_QUEUE_SIZE);
    // $NON-NLS-1$
    JLabel mqsLabel = new JLabel(JMeterUtils.getResString("httpmirror_max_queue_size"));
    mqsLabel.setLabelFor(maxQueueSizeField);
    HorizontalPanel panel = new HorizontalPanel();
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), // $NON-NLS-1$
    JMeterUtils.getResString("httpmirror_settings")));
    panel.add(label);
    panel.add(portField);
    panel.add(mpsLabel);
    panel.add(maxPoolSizeField);
    panel.add(mqsLabel);
    panel.add(maxQueueSizeField);
    panel.add(Box.createHorizontalStrut(10));
    return panel;
}
Also used : HorizontalPanel(org.apache.jmeter.gui.util.HorizontalPanel) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField)

Example 73 with JTextField

use of javax.swing.JTextField in project jmeter by apache.

the class SizeAssertionGui method init.

private void init() {
    // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
    setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
    setBorder(makeBorder());
    add(makeTitlePanel());
    add(createScopePanel(true));
    add(createFieldPanel());
    // USER_INPUT
    JPanel sizePanel = new JPanel();
    sizePanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), //$NON-NLS-1$
    JMeterUtils.getResString("size_assertion_size_test")));
    //$NON-NLS-1$
    sizePanel.add(new JLabel(JMeterUtils.getResString("size_assertion_label")));
    size = new JTextField(12);
    sizePanel.add(size);
    sizePanel.add(createComparatorButtonPanel());
    add(sizePanel);
}
Also used : JPanel(javax.swing.JPanel) VerticalLayout(org.apache.jorphan.gui.layout.VerticalLayout) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField)

Example 74 with JTextField

use of javax.swing.JTextField in project jmeter by apache.

the class BeanShellAssertionGui method createParameterPanel.

private JPanel createParameterPanel() {
    //$NON-NLS-1$
    JLabel label = new JLabel(JMeterUtils.getResString("bsh_script_parameters"));
    parameters = new JTextField(10);
    parameters.setName(BeanShellAssertion.PARAMETERS);
    label.setLabelFor(parameters);
    JPanel parameterPanel = new JPanel(new BorderLayout(5, 0));
    parameterPanel.add(label, BorderLayout.WEST);
    parameterPanel.add(parameters, BorderLayout.CENTER);
    return parameterPanel;
}
Also used : JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField)

Example 75 with JTextField

use of javax.swing.JTextField in project jmeter by apache.

the class ServerPanel method getPortPanel.

private JPanel getPortPanel() {
    port = new JTextField(4);
    // $NON-NLS-1$
    JLabel label = new JLabel(JMeterUtils.getResString("web_server_port"));
    label.setLabelFor(port);
    JPanel panel = new JPanel(new BorderLayout(5, 0));
    panel.add(label, BorderLayout.WEST);
    panel.add(port, BorderLayout.CENTER);
    return panel;
}
Also used : JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField)

Aggregations

JTextField (javax.swing.JTextField)450 JLabel (javax.swing.JLabel)270 JPanel (javax.swing.JPanel)236 JButton (javax.swing.JButton)135 BorderLayout (java.awt.BorderLayout)115 GridBagLayout (java.awt.GridBagLayout)94 Insets (java.awt.Insets)94 GridBagConstraints (java.awt.GridBagConstraints)93 Dimension (java.awt.Dimension)91 JCheckBox (javax.swing.JCheckBox)89 ActionEvent (java.awt.event.ActionEvent)84 ActionListener (java.awt.event.ActionListener)75 JScrollPane (javax.swing.JScrollPane)64 BoxLayout (javax.swing.BoxLayout)50 JTextArea (javax.swing.JTextArea)40 FlowLayout (java.awt.FlowLayout)39 JComboBox (javax.swing.JComboBox)39 JRadioButton (javax.swing.JRadioButton)37 ButtonGroup (javax.swing.ButtonGroup)35 JTable (javax.swing.JTable)34