org.apache.jmeter.gui.util.VerticalPanel Java Examples

The following examples show how to use org.apache.jmeter.gui.util.VerticalPanel. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EfficientConnectSamplerUI.java    From mqtt-jmeter with Apache License 2.0 6 votes vote down vote up
private JPanel createSubOption() {
	JPanel optsPanelCon = new VerticalPanel();
	optsPanelCon.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Subscription options"));
	
	JPanel optsPanel0 = new HorizontalPanel();
	optsPanel0.add(shouldSub);
	shouldSub.setSelected(false);
	optsPanelCon.add(optsPanel0);
	
	JPanel optsPanel1 = new HorizontalPanel();
	qosChoice = new JLabeledChoice("QoS Level:", new String[] { String.valueOf(QOS_0), String.valueOf(QOS_1), String.valueOf(QOS_2) }, true, false);
	optsPanel1.add(qosChoice);
	optsPanel1.add(topicNames);
	optsPanelCon.add(optsPanel1);
	
	return optsPanelCon;
}
 
Example #2
Source File: ChromeDriverConfigGui.java    From jmeter-plugins-webdriver with Apache License 2.0 6 votes vote down vote up
private JPanel createServicePanel() {
    final JPanel browserPanel = new VerticalPanel();
    final JPanel chromeServicePanel = new HorizontalPanel();
    final JLabel chromeDriverServiceLabel = new JLabel("Path to Chrome Driver");
    chromeServicePanel.add(chromeDriverServiceLabel);

    chromeServicePath = new JTextField();
    chromeServicePanel.add(chromeServicePath);
    browserPanel.add(chromeServicePanel);

    androidEnabled = new JCheckBox("Use Chrome on Android");
    browserPanel.add(androidEnabled);

    headlessEnabled = new JCheckBox("Use Chrome headless mode");
    browserPanel.add(getHeadlessEnabled());

    insecureCertsEnabled = new JCheckBox("Allow Insecure Certs");
    browserPanel.add(getInsecureCertsEnabled());

    incognitoEnabled = new JCheckBox("Run in Incognito mode");
    browserPanel.add(getIncognitoEnabled());
    return browserPanel;
}
 
Example #3
Source File: PubSamplerUI.java    From mqtt-jmeter with Apache License 2.0 6 votes vote down vote up
private JPanel createPubOption() {
	JPanel optsPanelCon = new VerticalPanel();
	optsPanelCon.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Pub options"));

	qosChoice = new JLabeledChoice("QoS Level:", new String[] { String.valueOf(QOS_0), String.valueOf(QOS_1), String.valueOf(QOS_2) }, true, false);
	qosChoice.addChangeListener(this);

	JPanel optsPanel = new HorizontalPanel();
	optsPanel.add(qosChoice);
	optsPanel.add(retainedMsg);
	optsPanel.add(topicName);
	topicName.setToolTipText("Name of topic that the message will be sent to.");
	optsPanel.add(timestamp);
	optsPanelCon.add(optsPanel);

	return optsPanelCon;
}
 
Example #4
Source File: WebDriverConfigGui.java    From jmeter-plugins-webdriver with Apache License 2.0 6 votes vote down vote up
private JPanel createExperimentalPanel() {
    JPanel panel = new VerticalPanel();

    // LABEL
    JLabel experimentalLabel = new JLabel("EXPERIMENTAL PROPERTIES - USE AT YOUR DISCRETION");
    experimentalLabel.setFont(new Font(Font.MONOSPACED, Font.BOLD, 16));
    panel.add(experimentalLabel);

    maximizeBrowser = new JCheckBox("Maximize browser window");
    maximizeBrowser.setSelected(true);
    panel.add(maximizeBrowser);

    // EXPERIMENTAL PROPERTIES
    recreateBrowserOnIterationStart = new JCheckBox("Create a new Browser at the start of each iteration");
    recreateBrowserOnIterationStart.setSelected(false);
    panel.add(recreateBrowserOnIterationStart);

    devMode = new JCheckBox("Development Mode (keep browser opened on error)");
    devMode.setSelected(false);
    panel.add(devMode);

    return panel;
}
 
Example #5
Source File: CommonConnUI.java    From mqtt-jmeter with Apache License 2.0 6 votes vote down vote up
public JPanel createConnOptions() {
	JPanel optsPanelCon = new VerticalPanel();
	optsPanelCon.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Connection options"));
	
	JPanel optsPanel0 = new HorizontalPanel();
	optsPanel0.add(connNamePrefix);
	optsPanel0.add(connNameSuffix);
	connNameSuffix.setSelected(true);
	optsPanelCon.add(optsPanel0);
	
	JPanel optsPanel1 = new HorizontalPanel();
	optsPanel1.add(connKeepAlive);
	optsPanelCon.add(optsPanel1);
	
	optsPanel1.add(connAttmptMax);
	optsPanel1.add(reconnAttmptMax);
	optsPanel1.add(connCleanSession);
	optsPanelCon.add(optsPanel1);
	
	return optsPanelCon;
}
 
Example #6
Source File: WebDriverConfigGui.java    From jmeter-plugins-webdriver with Apache License 2.0 6 votes vote down vote up
private JPanel createNoProxyPanel() {
    JPanel noProxyPanel = new VerticalPanel();
    JLabel noProxyListLabel = new JLabel("No Proxy for:");
    noProxyPanel.add(noProxyListLabel);

    noProxyList = new JTextArea(3, 10);
    noProxyList.setText(DEFAULT_NO_PROXY_LIST);
    noProxyList.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
    noProxyList.setEnabled(false);
    noProxyPanel.add(noProxyList);

    JLabel noProxyExample = new JLabel("Example: .jmeter.org, .com.au, 192.168.1.0/24");
    noProxyPanel.add(noProxyExample);

    return noProxyPanel;
}
 
Example #7
Source File: PubSamplerUI.java    From mqtt-jmeter with Apache License 2.0 6 votes vote down vote up
private JPanel createPayload() {
	JPanel optsPanelCon = new VerticalPanel();
	optsPanelCon.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Payloads"));
	
	JPanel horizon1 = new HorizontalPanel();
	messageTypes = new JLabeledChoice("Message type:", new String[] { MESSAGE_TYPE_STRING, MESSAGE_TYPE_HEX_STRING, MESSAGE_TYPE_RANDOM_STR_WITH_FIX_LEN }, false, false);
	messageTypes.addChangeListener(this);
	messageTypes.setSelectedIndex(0);
	
	horizon1.add(messageTypes, BorderLayout.WEST);
	stringLength.setVisible(false);
	horizon1.add(stringLength);
	
	JPanel horizon2 = new VerticalPanel();
	messagePanel.setVisible(false);
	horizon2.add(messagePanel);
	
	optsPanelCon.add(horizon1);
	optsPanelCon.add(horizon2);
	return optsPanelCon;
}
 
Example #8
Source File: MQTTSubscriberGui.java    From mqtt-jmeter with Apache License 2.0 5 votes vote down vote up
/**
 * Initializes all the UI elements
 */
private void init() {
    brokerUrlField.setText(Constants.MQTT_URL_DEFAULT);
    setLayout(new BorderLayout());
    setBorder(makeBorder());
    add(makeTitlePanel(), BorderLayout.NORTH);
    JPanel mainPanel = new VerticalPanel();
    add(mainPanel, BorderLayout.CENTER);
    JPanel DPanel = new JPanel();
    DPanel.setLayout(new BoxLayout(DPanel, BoxLayout.X_AXIS));
    DPanel.add(brokerUrlField);
    DPanel.add(clientId);
    DPanel.add(generateClientID);
    JPanel ControlPanel = new VerticalPanel();
    ControlPanel.add(DPanel);
    ControlPanel.add(createDestinationPane());
    ControlPanel.add(cleanSession);
    ControlPanel.add(createKeepAlivePane());
    ControlPanel.add(createAuthPane());
    ControlPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.gray),
            "Connection Info"));
    mainPanel.add(ControlPanel);
    JPanel TPanel = new VerticalPanel();
    TPanel.setLayout(new BoxLayout(TPanel, BoxLayout.X_AXIS));
    typeQoSValue.setLayout(new BoxLayout(typeQoSValue, BoxLayout.X_AXIS));
    typeClientValue.setLayout(new BoxLayout(typeClientValue, BoxLayout.X_AXIS));
    TPanel.add(typeQoSValue);
    TPanel.add(typeClientValue);
    TPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.gray), "Option"));
    mainPanel.add(TPanel);

    generateClientID.setActionCommand(Constants.GENERATE_CLIENT_ID_COMMAND);
    resetUserNameAndPassword.setActionCommand(Constants.RESET_CREDENTIALS);
    generateClientID.addActionListener(this);
    resetUserNameAndPassword.addActionListener(this);
    brokerUrlField.setText(Constants.MQTT_URL_DEFAULT);

}
 
Example #9
Source File: MQTTSubscriberGui.java    From mqtt-jmeter with Apache License 2.0 5 votes vote down vote up
/**
 * Creates the mqtt client keep alive panel.
 *
 * @return The mqtt client keep alive panel.
 */
private JPanel createKeepAlivePane() {
    JPanel panel = new VerticalPanel(); //new BorderLayout(3, 0)
    this.mqttKeepAlive.setLayout((new BoxLayout(mqttKeepAlive, BoxLayout.X_AXIS)));
    panel.add(mqttKeepAlive);
    JPanel TPanel = new JPanel();
    TPanel.setLayout(new BoxLayout(TPanel, BoxLayout.X_AXIS));
    TPanel.add(Box.createHorizontalStrut(100));
    panel.add(TPanel);
    mqttKeepAlive.setText(Constants.MQTT_KEEP_ALIVE_DEFAULT);
    return panel;
}
 
Example #10
Source File: MQTTPublisherGui.java    From mqtt-jmeter with Apache License 2.0 5 votes vote down vote up
/**
 * Creates the mqtt client keep alive panel.
 *
 * @return The mqtt client keep alive panel.
 */
private JPanel createKeepAlivePane() {
    JPanel panel = new VerticalPanel(); //new BorderLayout(3, 0)
    this.mqttKeepAlive.setLayout((new BoxLayout(mqttKeepAlive, BoxLayout.X_AXIS)));
    panel.add(mqttKeepAlive);
    JPanel TPanel = new JPanel();
    TPanel.setLayout(new BoxLayout(TPanel, BoxLayout.X_AXIS));
    TPanel.add(Box.createHorizontalStrut(100));
    panel.add(TPanel);
    mqttKeepAlive.setText(Constants.MQTT_KEEP_ALIVE_DEFAULT);
    return panel;
}
 
Example #11
Source File: MQTTPublisherGui.java    From mqtt-jmeter with Apache License 2.0 5 votes vote down vote up
/**
 * Creates the topic destination panel.
 *
 * @return The topic destination panel.
 */
private JPanel createDestinationPane() {
    JPanel panel = new VerticalPanel(); //new BorderLayout(3, 0)
    this.mqttDestination.setLayout((new BoxLayout(mqttDestination, BoxLayout.X_AXIS)));
    panel.add(mqttDestination);
    JPanel TPanel = new JPanel();
    TPanel.setLayout(new BoxLayout(TPanel, BoxLayout.X_AXIS));
    TPanel.add(Box.createHorizontalStrut(100));
    panel.add(TPanel);
    return panel;
}
 
Example #12
Source File: HonoSamplerUI.java    From hono with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Creates a new GUI component.
 */
public HonoSamplerUI() {

    setLayout(new BorderLayout());
    setBorder(makeBorder());
    add(makeTitlePanel(), BorderLayout.NORTH);
    optsPanel = new VerticalPanel();
    add(optsPanel, BorderLayout.CENTER);
}
 
Example #13
Source File: HonoCommanderSamplerUI.java    From hono with Eclipse Public License 2.0 5 votes vote down vote up
private JPanel getTriggerTypePanel() {
    final JPanel triggerOuterPanel = new VerticalPanel(50, 0.0F);
    triggerOuterPanel.setBorder(
            BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Commands triggered by"));
    final JPanel triggerPanel = new JPanel(new BorderLayout(10, 50));
    setDescriptionTextAreaDesign(triggerTypeDescription, triggerPanel);
    triggerPanel.add(triggerType, BorderLayout.LINE_START);
    triggerPanel.add(triggerTypeDescription, BorderLayout.CENTER);
    triggerType.addActionListener(e -> triggerTypeDescription.setText(getDescriptionTextForSelectedTrigger()));
    triggerOuterPanel.add(triggerPanel);
    return triggerOuterPanel;
}
 
Example #14
Source File: HonoReceiverSamplerUI.java    From hono with Eclipse Public License 2.0 5 votes vote down vote up
private JPanel createTimeStampPanel() {
    final JPanel timeStampPanel = new VerticalPanel();
    timeStampPanel.setBorder(
            BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Timestamp used for 'elapsed time' value"));

    final JPanel senderTimeFromPayloadPanel = new JPanel(new BorderLayout(10, 0));
    senderTimeFromPayloadPanel.add(senderTimeInPayload, BorderLayout.WEST);
    senderTimeFromPayloadPanel.add(senderTimeVariableName, BorderLayout.CENTER);

    final JPanel senderTimeOptionsPanel = new JPanel(new BorderLayout());
    senderTimeOptionsPanel.add(senderTimeInProperty, BorderLayout.WEST);
    senderTimeOptionsPanel.add(senderTimeFromPayloadPanel, BorderLayout.CENTER);

    timeStampPanel.add(useSenderTime);
    timeStampPanel.add(senderTimeOptionsPanel);

    useSenderTime.addChangeListener(e -> {
        if (e.getSource() == useSenderTime) {
            senderTimeOptionsPanel.setVisible(useSenderTime.isSelected());
        }
    });
    senderTimeInPayload.addChangeListener(e -> {
        if (e.getSource() == senderTimeInPayload) {
            senderTimeVariableName.setEnabled(senderTimeInPayload.isSelected());
        }
    });
    return timeStampPanel;
}
 
Example #15
Source File: EfficientDisConnectSamplerUI.java    From mqtt-jmeter with Apache License 2.0 5 votes vote down vote up
private void init() {
	setLayout(new BorderLayout());
	setBorder(makeBorder());
	add(makeTitlePanel(), BorderLayout.NORTH);
	JPanel mainPanel = new VerticalPanel();
	add(mainPanel, BorderLayout.CENTER);
}
 
Example #16
Source File: SubSamplerUI.java    From mqtt-jmeter with Apache License 2.0 5 votes vote down vote up
private JPanel createSubOption() {
	JPanel optsPanelCon = new VerticalPanel();
	optsPanelCon.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Sub options"));

	qosChoice = new JLabeledChoice("QoS Level:", new String[] { String.valueOf(QOS_0), String.valueOf(QOS_1), String.valueOf(QOS_2) }, true, false);
	sampleOnCondition = new JLabeledChoice("Sample on:", new String[] {SAMPLE_ON_CONDITION_OPTION1, SAMPLE_ON_CONDITION_OPTION2});

	JPanel optsPanel1 = new HorizontalPanel();
	optsPanel1.add(qosChoice);
	optsPanel1.add(topicNames);
	topicNames.setToolTipText("A list of topics to be subscribed to, comma-separated.");
	optsPanel1.add(timestamp);
	optsPanelCon.add(optsPanel1);
	
	JPanel optsPanel3 = new HorizontalPanel();
	sampleOnCondition.addChangeListener(this);
	optsPanel3.add(sampleOnCondition);
	optsPanel3.add(sampleConditionValue);
	sampleOnCondition.setToolTipText("When sub sampler should report out.");
	sampleConditionValue.setToolTipText("Please specify an integer value great than 0, other values will be ignored.");
	optsPanelCon.add(optsPanel3);
	
	JPanel optsPanel2 = new HorizontalPanel();
	optsPanel2.add(debugResponse);
	optsPanelCon.add(optsPanel2);

	return optsPanelCon;
}
 
Example #17
Source File: SubSamplerUI.java    From mqtt-jmeter with Apache License 2.0 5 votes vote down vote up
private void init() {
	setLayout(new BorderLayout());
	setBorder(makeBorder());

	add(makeTitlePanel(), BorderLayout.NORTH);
	JPanel mainPanel = new VerticalPanel();
	add(mainPanel, BorderLayout.CENTER);

	mainPanel.add(createSubOption());
}
 
Example #18
Source File: MQTTSubscriberGui.java    From mqtt-jmeter with Apache License 2.0 5 votes vote down vote up
/**
 * Creates the topic destination panel.
 *
 * @return The topic destination panel.
 */
private JPanel createDestinationPane() {
    JPanel panel = new VerticalPanel(); //new BorderLayout(3, 0)
    this.mqttDestination.setLayout((new BoxLayout(mqttDestination, BoxLayout.X_AXIS)));
    panel.add(mqttDestination);
    JPanel TPanel = new JPanel();
    TPanel.setLayout(new BoxLayout(TPanel, BoxLayout.X_AXIS));
    TPanel.add(Box.createHorizontalStrut(100));
    panel.add(TPanel);        return panel;
}
 
Example #19
Source File: EfficientConnectSamplerUI.java    From mqtt-jmeter with Apache License 2.0 5 votes vote down vote up
private void init() {
	setLayout(new BorderLayout());
	setBorder(makeBorder());

	add(makeTitlePanel(), BorderLayout.NORTH);
	JPanel mainPanel = new VerticalPanel();
	add(mainPanel, BorderLayout.CENTER);

	mainPanel.add(connUI.createConnPanel());
	mainPanel.add(connUI.createProtocolPanel()); 
	mainPanel.add(connUI.createAuthentication());
	mainPanel.add(connUI.createConnOptions());
	mainPanel.add(createSubOption());
	mainPanel.add(createConCapacityOption());
}
 
Example #20
Source File: JMeterPluginsUtilsTest.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
@Test
public void testAddHelpLinkToPanel() {
    System.out.println("addHelpLinkToPanel");
    VerticalPanel titlePanel = new VerticalPanel();
    titlePanel.add(new JLabel("title"));
    VerticalPanel contentPanel = new VerticalPanel();
    contentPanel.setBorder(BorderFactory.createEtchedBorder());
    contentPanel.add(new JPanel());
    contentPanel.add(new JPanel());
    contentPanel.setName("THIS");
    titlePanel.add(contentPanel);
    String helpPage = "";
    Component result = JMeterPluginsUtils.addHelpLinkToPanel(titlePanel, helpPage);
    assertNotNull(result);
}
 
Example #21
Source File: XMLFormatPostProcessorGui.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
private void init() {
    setBorder(makeBorder());
    setLayout(new BorderLayout());
    JPanel vertPanel = new VerticalPanel();
    vertPanel.add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH);
    add(vertPanel, BorderLayout.NORTH);
}
 
Example #22
Source File: JSONFormatterGui.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
public void init() {
    setLayout(new BorderLayout());
    setBorder(makeBorder());
    add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH);

    VerticalPanel panel = new VerticalPanel();
    panel.setBorder(BorderFactory.createEtchedBorder());

    add(panel, BorderLayout.CENTER);
}
 
Example #23
Source File: JSONPathAssertionGui.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
public void init() {
    setLayout(new BorderLayout());
    setBorder(makeBorder());
    add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH);

    VerticalPanel panel = new VerticalPanel();
    panel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0));

    JPanel groupPanel = new HorizontalPanel();
    inputJSON.setActionCommand(JSONPathAssertion.INPUT_JSON);
    inputYAML.setActionCommand(JSONPathAssertion.INPUT_YAML);
    inputFormatGroup.add(inputJSON);
    inputFormatGroup.add(inputYAML);
    groupPanel.add(inputJSON);
    groupPanel.add(inputYAML);
    JPanel inputFormatPanel = new HorizontalPanel();
    inputFormatPanel.add(new JLabel("Input Format: "));
    inputFormatPanel.add(groupPanel);

    jsonPath = new JLabeledTextField("Assert JSON Path exists: ");
    jsonValidation = new JCheckBox("Additionally assert value");
    isRegex = new JCheckBox("Match as regular expression");
    jsonValue = new JLabeledTextArea("Expected Value: ");
    expectNull = new JCheckBox("Expect null");
    invert = new JCheckBox("Invert assertion (will fail if above conditions met)");

    jsonValidation.addChangeListener(this);
    expectNull.addChangeListener(this);

    panel.add(inputFormatPanel);
    panel.add(jsonPath);
    panel.add(jsonValidation);
    panel.add(isRegex);
    panel.add(jsonValue);
    panel.add(expectNull);
    panel.add(invert);

    add(panel, BorderLayout.CENTER);
}
 
Example #24
Source File: OAuthSamplerGui.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
private JPanel getRequestPanel() {
    body = new JLabeledTextArea("Body"); 
    headers = new JLabeledTextArea("Headers"); 
    VerticalPanel panel = new VerticalPanel();
    panel.add(headers, BorderLayout.NORTH);
    panel.add(body, BorderLayout.CENTER);
    return panel;
}
 
Example #25
Source File: OAuthSamplerGui.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
private void init() {
    setLayout(new BorderLayout());
    setBorder(makeBorder());
    add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH);
    VerticalPanel panel = new VerticalPanel();
    panel.setBorder(BorderFactory.createEtchedBorder());
    panel.add(getResourceConfigPanel(), BorderLayout.NORTH);
    panel.add(getRequestPanel(), BorderLayout.CENTER);
    add(panel, BorderLayout.CENTER);
}
 
Example #26
Source File: UltimateThreadGroupGui.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
protected final void init() {
    JMeterPluginsUtils.addHelpLinkToPanel(this, WIKIPAGE);
    JPanel containerPanel = new VerticalPanel();

    containerPanel.add(createParamsPanel(), BorderLayout.NORTH);
    containerPanel.add(GuiBuilderHelper.getComponentWithMargin(createChart(), 2, 2, 0, 2), BorderLayout.CENTER);
    add(containerPanel, BorderLayout.CENTER);

    // this magic LoopPanel provides functionality for thread loops
    createControllerPanel();
}
 
Example #27
Source File: AbstractDynamicThreadGroupGui.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
protected void initUI() {
    JPanel container = new VerticalPanel();
    loadFields = createLoadPanel();
    container.add((Component) loadFields, BorderLayout.NORTH);
    container.add(GuiBuilderHelper.getComponentWithMargin(getPreviewChart(), 2, 2, 0, 2), BorderLayout.CENTER);
    additionalFields = getAdditionalFieldsPanel();
    additionalFields.addActionListener(this);
    container.add(additionalFields, BorderLayout.SOUTH);
    add(container, BorderLayout.CENTER);
    uiCreated = true;
}
 
Example #28
Source File: XMLFormatPostProcessorGui.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
private void init() {
    setBorder(makeBorder());
    setLayout(new BorderLayout());
    JPanel vertPanel = new VerticalPanel();
    vertPanel.add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH);
    add(vertPanel, BorderLayout.NORTH);
}
 
Example #29
Source File: VariableThroughputTimerGui.java    From jmeter-plugins with Apache License 2.0 5 votes vote down vote up
/**
 *
 */
protected final void init() {
    setBorder(makeBorder());
    setLayout(new BorderLayout());
    add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH);
    JPanel containerPanel = new VerticalPanel();

    containerPanel.add(createParamsPanel(), BorderLayout.NORTH);
    containerPanel.add(GuiBuilderHelper.getComponentWithMargin(createChart(), 2, 2, 0, 2), BorderLayout.CENTER);
    add(containerPanel, BorderLayout.CENTER);
}
 
Example #30
Source File: WebSocketSamplerGui.java    From jmeter-websocket with Apache License 2.0 5 votes vote down vote up
private void init() {
    setLayout(new BorderLayout(0, 5));

    if (displayName) {
        setBorder(makeBorder());
        add(makeTitlePanel(), BorderLayout.NORTH);
    }

    // MAIN PANEL
    VerticalPanel mainPanel = new VerticalPanel();
    JPanel webRequestPanel = new HorizontalPanel();
    JPanel serverPanel = new JPanel();
    serverPanel.setLayout(new BoxLayout(serverPanel, BoxLayout.X_AXIS));
    serverPanel.add(getDomainPanel());
    serverPanel.add(getPortPanel());

    webRequestPanel.add(serverPanel, BorderLayout.NORTH);
    JPanel northPanel = new JPanel();
    northPanel.setLayout(new BoxLayout(northPanel, BoxLayout.Y_AXIS));
    northPanel.add(getProtocolAndPathPanel());

    webRequestPanel.add(northPanel, BorderLayout.CENTER);
    argsPanel = new HTTPArgumentsPanel();
    webRequestPanel.add(argsPanel, BorderLayout.SOUTH);

    mainPanel.add(webRequestPanel);
    mainPanel.add(getSendMessagePanel());
    mainPanel.add(getRecvMessagePanel());
    add(mainPanel, BorderLayout.CENTER);
}