kg.apc.jmeter.gui.Grid Java Examples

The following examples show how to use kg.apc.jmeter.gui.Grid. 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: FirefoxDriverConfigGui.java    From jmeter-plugins-webdriver with Apache License 2.0 5 votes vote down vote up
private JPanel createProfilePanel() {
    final JPanel firefoxPanel = new VerticalPanel();
    userAgentOverrideCheckbox = new JCheckBox("Override User Agent");
    userAgentOverrideCheckbox.setSelected(false);
    userAgentOverrideCheckbox.setEnabled(true);
    userAgentOverrideCheckbox.addItemListener(this);
    firefoxPanel.add(userAgentOverrideCheckbox);

    userAgentOverrideText = new JTextField();
    userAgentOverrideText.setEnabled(false);
    firefoxPanel.add(userAgentOverrideText);

    ntlmOverrideCheckbox = new JCheckBox("Enable NTLM");
    ntlmOverrideCheckbox.setSelected(false);
    ntlmOverrideCheckbox.setEnabled(true);
    ntlmOverrideCheckbox.addItemListener(this);
    firefoxPanel.add(ntlmOverrideCheckbox);

    extensions = new Grid("Load Extensions", new String[]{"Path to XPI File"}, new Class[]{String.class}, new String[]{""});
    firefoxPanel.add(extensions);

    preferences = new Grid("Set Preferences", new String[]{"Name", "Value"}, new Class[]{String.class, String.class}, new String[]{"", ""});
    firefoxPanel.add(preferences);

    final JPanel browserPanel = new VerticalPanel();
    browserPanel.add(firefoxPanel);
    return browserPanel;
}