Search in sources :

Example 46 with VerticalPanel

use of org.apache.jmeter.gui.util.VerticalPanel in project hono by eclipse.

the class HonoReceiverSamplerUI method createTimeStampPanel.

private JPanel createTimeStampPanel() {
    final JPanel timeStampPanel = new VerticalPanel();
    timeStampPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Timestamp used for sampling"));
    timeStampPanel.add(useSenderTime);
    timeStampPanel.add(senderTimeInPayload);
    timeStampPanel.add(senderTimeVariableName);
    useSenderTime.addChangeListener(e -> {
        if (e.getSource() == this.useSenderTime) {
            if (this.useSenderTime.isSelected()) {
                senderTimeInPayload.setVisible(true);
                senderTimeVariableName.setVisible(true);
            } else {
                senderTimeInPayload.setVisible(false);
                senderTimeVariableName.setVisible(false);
            }
        }
    });
    return timeStampPanel;
}
Also used : JPanel(javax.swing.JPanel) VerticalPanel(org.apache.jmeter.gui.util.VerticalPanel)

Aggregations

VerticalPanel (org.apache.jmeter.gui.util.VerticalPanel)46 BorderLayout (java.awt.BorderLayout)30 JPanel (javax.swing.JPanel)23 JCheckBox (javax.swing.JCheckBox)13 JLabel (javax.swing.JLabel)12 HorizontalPanel (org.apache.jmeter.gui.util.HorizontalPanel)11 JTextField (javax.swing.JTextField)9 Dimension (java.awt.Dimension)5 JTabbedPane (javax.swing.JTabbedPane)5 JLabeledTextField (org.apache.jorphan.gui.JLabeledTextField)5 BoxLayout (javax.swing.BoxLayout)4 JButton (javax.swing.JButton)4 Border (javax.swing.border.Border)3 EmptyBorder (javax.swing.border.EmptyBorder)3 LoginConfigGui (org.apache.jmeter.config.gui.LoginConfigGui)3 FlowLayout (java.awt.FlowLayout)2 Font (java.awt.Font)2 GridBagConstraints (java.awt.GridBagConstraints)2 GridBagLayout (java.awt.GridBagLayout)2 ArrayList (java.util.ArrayList)2