Search in sources :

Example 1 with ServerPanel

use of org.apache.jmeter.gui.ServerPanel in project jmeter by apache.

the class TCPConfigGui method init.

private void init() {
    // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
    setLayout(new BorderLayout(0, 5));
    serverPanel = new ServerPanel();
    if (displayName) {
        setBorder(makeBorder());
        add(makeTitlePanel(), BorderLayout.NORTH);
    }
    VerticalPanel mainPanel = new VerticalPanel();
    // $NON-NLS-1$
    classname = new JLabeledTextField(JMeterUtils.getResString("tcp_classname"));
    mainPanel.add(classname);
    mainPanel.add(serverPanel);
    HorizontalPanel optionsPanel = new HorizontalPanel();
    optionsPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder()));
    optionsPanel.add(createClosePortPanel());
    optionsPanel.add(createCloseConnectionPanel());
    optionsPanel.add(createNoDelayPanel());
    optionsPanel.add(createSoLingerOption());
    optionsPanel.add(createEolBytePanel());
    mainPanel.add(optionsPanel);
    mainPanel.add(createRequestPanel());
    add(mainPanel, BorderLayout.CENTER);
}
Also used : JLabeledTextField(org.apache.jorphan.gui.JLabeledTextField) VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel) BorderLayout(java.awt.BorderLayout) ServerPanel(org.apache.jmeter.gui.ServerPanel) HorizontalPanel(org.apache.jmeter.gui.util.HorizontalPanel)

Aggregations

BorderLayout (java.awt.BorderLayout)1 ServerPanel (org.apache.jmeter.gui.ServerPanel)1 HorizontalPanel (org.apache.jmeter.gui.util.HorizontalPanel)1 VerticalPanel (org.apache.jmeter.gui.util.VerticalPanel)1 JLabeledTextField (org.apache.jorphan.gui.JLabeledTextField)1