use of javax.swing.JTextField in project jmeter by apache.
the class HttpDefaultsGui method getResponseTimeOutPanel.
private JPanel getResponseTimeOutPanel() {
responseTimeOut = new JTextField(10);
// $NON-NLS-1$
JLabel label = new JLabel(JMeterUtils.getResString("web_server_timeout_response"));
label.setLabelFor(responseTimeOut);
JPanel panel = new JPanel(new BorderLayout(5, 0));
panel.add(label, BorderLayout.WEST);
panel.add(responseTimeOut, BorderLayout.CENTER);
return panel;
}
use of javax.swing.JTextField in project jmeter by apache.
the class HttpDefaultsGui 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 HttpDefaultsGui method getProxyPortPanel.
private JPanel getProxyPortPanel() {
proxyPort = new JTextField(10);
// $NON-NLS-1$
JLabel label = new JLabel(JMeterUtils.getResString("web_server_port"));
label.setLabelFor(proxyPort);
label.setFont(FONT_SMALL);
JPanel panel = new JPanel(new BorderLayout(5, 0));
panel.add(label, BorderLayout.WEST);
panel.add(proxyPort, BorderLayout.CENTER);
return panel;
}
use of javax.swing.JTextField in project jmeter by apache.
the class SmtpPanel method clearHeaderFields.
private void clearHeaderFields() {
headerFieldName.setVisible(false);
headerFieldValue.setVisible(false);
for (Iterator<JButton> iterator = removeButtons.keySet().iterator(); iterator.hasNext(); ) {
JButton removeButton = iterator.next();
JTextField headerName = removeButtons.get(removeButton);
JTextField headerValue = headerFields.get(headerName);
headerFieldsPanel.remove(headerName);
if (headerValue != null) {
// Can be null (not sure why)
headerFieldsPanel.remove(headerValue);
}
headerFieldsPanel.remove(removeButton);
headerFields.remove(headerName);
iterator.remove();
}
}
use of javax.swing.JTextField in project jmeter by apache.
the class SmtpPanel method removeHeaderActionPerformed.
private void removeHeaderActionPerformed(ActionEvent evt) {
// NOSONAR This method is used through lambda
final Object source = evt.getSource();
if (source instanceof JButton) {
if (headerFields.size() == 1) {
headerFieldName.setVisible(false);
headerFieldValue.setVisible(false);
}
JTextField nameTF = removeButtons.get(source);
JTextField valueTF = headerFields.get(nameTF);
headerFields.remove(nameTF);
headerFieldsPanel.remove(nameTF);
headerFieldsPanel.remove(valueTF);
headerFieldsPanel.remove((JButton) source);
validate();
}
}
Aggregations