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;
}
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;
}
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);
}
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;
}
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;
}
Aggregations