Search in sources :

Example 1 with TristateCheckBox

use of org.apache.jmeter.gui.util.TristateCheckBox in project jmeter by apache.

the class TCPConfigGui method createNoDelayPanel.

private JPanel createNoDelayPanel() {
    // $NON-NLS-1$
    JLabel label = new JLabel(JMeterUtils.getResString("tcp_nodelay"));
    setNoDelay = new TristateCheckBox();
    label.setLabelFor(setNoDelay);
    JPanel nodelayPanel = new JPanel(new FlowLayout());
    nodelayPanel.add(label);
    nodelayPanel.add(setNoDelay);
    return nodelayPanel;
}
Also used : TristateCheckBox(org.apache.jmeter.gui.util.TristateCheckBox) JPanel(javax.swing.JPanel) FlowLayout(java.awt.FlowLayout) JLabel(javax.swing.JLabel)

Example 2 with TristateCheckBox

use of org.apache.jmeter.gui.util.TristateCheckBox in project jmeter by apache.

the class TCPConfigGui method createCloseConnectionPanel.

private JPanel createCloseConnectionPanel() {
    // $NON-NLS-1$
    JLabel label = new JLabel(JMeterUtils.getResString("closeconnection"));
    closeConnection = new TristateCheckBox("", TCPSampler.CLOSE_CONNECTION_DEFAULT);
    label.setLabelFor(closeConnection);
    JPanel closeConnectionPanel = new JPanel(new FlowLayout());
    closeConnectionPanel.add(label);
    closeConnectionPanel.add(closeConnection);
    return closeConnectionPanel;
}
Also used : TristateCheckBox(org.apache.jmeter.gui.util.TristateCheckBox) JPanel(javax.swing.JPanel) FlowLayout(java.awt.FlowLayout) JLabel(javax.swing.JLabel)

Aggregations

FlowLayout (java.awt.FlowLayout)2 JLabel (javax.swing.JLabel)2 JPanel (javax.swing.JPanel)2 TristateCheckBox (org.apache.jmeter.gui.util.TristateCheckBox)2