Search in sources :

Example 56 with JTextField

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;
}
Also used : JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField)

Example 57 with JTextField

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;
}
Also used : JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField)

Example 58 with JTextField

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;
}
Also used : JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField)

Example 59 with JTextField

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;
}
Also used : JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField)

Example 60 with JTextField

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;
}
Also used : JPanel(javax.swing.JPanel) HorizontalPanel(org.apache.jmeter.gui.util.HorizontalPanel) 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