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