use of javax.swing.JTextField in project jmeter by apache.
the class FtpConfigGui method createLocalFilenamePanel.
private JPanel createLocalFilenamePanel() {
//$NON-NLS-1$
JLabel label = new JLabel(JMeterUtils.getResString("ftp_local_file"));
localFile = new JTextField(10);
label.setLabelFor(localFile);
JPanel filenamePanel = new JPanel(new BorderLayout(5, 0));
filenamePanel.add(label, BorderLayout.WEST);
filenamePanel.add(localFile, BorderLayout.CENTER);
return filenamePanel;
}
use of javax.swing.JTextField in project jmeter by apache.
the class FtpConfigGui 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;
}
use of javax.swing.JTextField in project jmeter by apache.
the class FtpConfigGui method createRemoteFilenamePanel.
private JPanel createRemoteFilenamePanel() {
//$NON-NLS-1$
JLabel label = new JLabel(JMeterUtils.getResString("ftp_remote_file"));
remoteFile = new JTextField(10);
label.setLabelFor(remoteFile);
JPanel filenamePanel = new JPanel(new BorderLayout(5, 0));
filenamePanel.add(label, BorderLayout.WEST);
filenamePanel.add(remoteFile, BorderLayout.CENTER);
return filenamePanel;
}
use of javax.swing.JTextField in project jmeter by apache.
the class HttpDefaultsGui method getProxyHostPanel.
private JPanel getProxyHostPanel() {
proxyHost = new JTextField(10);
// $NON-NLS-1$
JLabel label = new JLabel(JMeterUtils.getResString("web_server_domain"));
label.setLabelFor(proxyHost);
label.setFont(FONT_SMALL);
JPanel panel = new JPanel(new BorderLayout(5, 0));
panel.add(label, BorderLayout.WEST);
panel.add(proxyHost, BorderLayout.CENTER);
return panel;
}
use of javax.swing.JTextField in project jmeter by apache.
the class HttpDefaultsGui method createSourceAddrPanel.
protected JPanel createSourceAddrPanel() {
final JPanel sourceAddrPanel = new HorizontalPanel();
sourceAddrPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString(// $NON-NLS-1$
"web_testing_source_ip")));
//default: IP/Hostname
sourceIpType.setSelectedIndex(HTTPSamplerBase.SourceType.HOSTNAME.ordinal());
sourceAddrPanel.add(sourceIpType);
sourceIpAddr = new JTextField();
sourceAddrPanel.add(sourceIpAddr);
return sourceAddrPanel;
}
Aggregations