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