Package org.apache.jmeter.gui.util

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


        JPanel pane = new JPanel();
        pane.setLayout(new BorderLayout(10,10));
        pane.setBackground(Color.white);
        pane.add(this.getNamePanel(),BorderLayout.NORTH);
       
        VerticalPanel options = new VerticalPanel(Color.white);
        yAxisLabel.setBackground(Color.white);

        JLabel xLabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis"));
    HorizontalPanel xpanel = new HorizontalPanel(Color.white);
    xLabel.setBorder(new EmptyBorder(5,2,5,2));
        xItems.setBackground(Color.white);
        xItems.setValues(AbstractTable.xitems);
        xpanel.add(xLabel);
        xpanel.add(xItems);
        options.add(xpanel);

        JLabel xALabel = new JLabel(JMeterUtils.getResString("report_chart_x_axis_label"));
        HorizontalPanel xApanel = new HorizontalPanel(Color.white);
        xALabel.setBorder(new EmptyBorder(5,2,5,2));
        xAxisLabel.setBackground(Color.white);
        xAxisLabel.setValues(AbstractChart.X_LABELS);
        xApanel.add(xALabel);
        xApanel.add(xAxisLabel);
        options.add(xApanel);
       
    JLabel yLabel = new JLabel(JMeterUtils.getResString("report_chart_y_axis"));
    HorizontalPanel ypanel = new HorizontalPanel(Color.white);
    yLabel.setBorder(new EmptyBorder(5,2,5,2));
        yItems.setBackground(Color.white);
        yItems.setValues(AbstractTable.items);
        ypanel.add(yLabel);
        ypanel.add(yItems);
        options.add(ypanel);
        options.add(yAxisLabel);
        options.add(caption);
        options.add(urls);
       
        add(pane,BorderLayout.NORTH);
        add(options,BorderLayout.CENTER);
  }
View Full Code Here


    }   

  private void init() {
    setBorder(makeBorder());
    setLayout(new BorderLayout());
    JPanel vertPanel = new VerticalPanel();
    vertPanel.add(makeTitlePanel());

    perIterationCheck = new JCheckBox(JMeterUtils.getResString("update_per_iter"), true); // $NON-NLS-1$
    Box perIterationPanel = Box.createHorizontalBox();
    perIterationPanel.add(perIterationCheck);
    perIterationPanel.add(Box.createHorizontalGlue());
    vertPanel.add(perIterationPanel);
    add(vertPanel, BorderLayout.NORTH);

    add(makeParameterPanel(), BorderLayout.CENTER);
  }
View Full Code Here

    myJTable = new JTable(model);
    myJTable.setPreferredScrollableViewportSize(new Dimension(500, 80));
    RendererUtils.applyRenderers(myJTable, RENDERERS);
    myScrollPane = new JScrollPane(myJTable);
       
        graph = new VerticalPanel();
        graph.setBorder(margin2);


        JLabel graphLabel = new JLabel(JMeterUtils.getResString("aggregate_graph")); //$NON-NLS-1$
        graphPanel = new AxisGraph();
View Full Code Here

    add(makeTitlePanel(), BorderLayout.NORTH);

    JPanel mainPanel = new JPanel(new BorderLayout());

    // USER_INPUT
    VerticalPanel assertionPanel = new VerticalPanel();
    assertionPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Tidy Settings"));

    // doctype
    HorizontalPanel docTypePanel = new HorizontalPanel();
    docTypeBox = new JComboBox(new Object[] { "omit", "auto", "strict", "loose" });
    // docTypePanel.add(new
    // JLabel(JMeterUtils.getResString("duration_assertion_label"))); //$NON-NLS-1$
    docTypePanel.add(new JLabel("Doctype:"));
    docTypePanel.add(docTypeBox);
    assertionPanel.add(docTypePanel);

    // format (HMTL, XHTML, XML)
    VerticalPanel formatPanel = new VerticalPanel();
    formatPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Format"));
    htmlRadioButton = new JRadioButton("HTML", true); //$NON-NLS-1$
    xhtmlRadioButton = new JRadioButton("XHTML", false); //$NON-NLS-1$
    xmlRadioButton = new JRadioButton("XML", false); //$NON-NLS-1$
    ButtonGroup buttonGroup = new ButtonGroup();
    buttonGroup.add(htmlRadioButton);
    buttonGroup.add(xhtmlRadioButton);
    buttonGroup.add(xmlRadioButton);
    formatPanel.add(htmlRadioButton);
    formatPanel.add(xhtmlRadioButton);
    formatPanel.add(xmlRadioButton);
    assertionPanel.add(formatPanel);

    // errors only
    errorsOnly = new JCheckBox("Errors only", false);
    errorsOnly.addActionListener(this);
View Full Code Here

  /**
   * This will create the Search panel in the LdapConfigGui.
   */
  private JPanel createSearchPanel() {
    VerticalPanel searchPanel = new VerticalPanel();
    JPanel searchBPanel = new JPanel(new BorderLayout(5, 0));
    JLabel label = new JLabel(JMeterUtils.getResString("search_base")); // $NON-NLS-1$
    label.setLabelFor(searchbase);
    searchBPanel.add(label, BorderLayout.WEST);
    searchBPanel.add(searchbase, BorderLayout.CENTER);
    JPanel searchFPanel = new JPanel(new BorderLayout(5, 0));
    JLabel label2 = new JLabel(JMeterUtils.getResString("search_filter")); // $NON-NLS-1$
    label2.setLabelFor(searchfilter);
    searchFPanel.add(label2, BorderLayout.WEST);
    searchFPanel.add(searchfilter, BorderLayout.CENTER);
    searchPanel.add(searchBPanel);
    searchPanel.add(searchFPanel);
    return searchPanel;
  }
View Full Code Here

  /**
   * This will create the Delete panel in the LdapConfigGui.
   */
  private JPanel createDeletePanel() {
    VerticalPanel panel = new VerticalPanel();
    JPanel deletePanel = new JPanel(new BorderLayout(5, 0));
    JLabel label = new JLabel(JMeterUtils.getResString("delete")); // $NON-NLS-1$
    label.setLabelFor(delete);
    deletePanel.add(label, BorderLayout.WEST);
    deletePanel.add(delete, BorderLayout.CENTER);
    panel.add(deletePanel);
    return panel;
  }
View Full Code Here

    if (displayName) {
      setBorder(makeBorder());
      add(makeTitlePanel(), BorderLayout.NORTH);
    }
    VerticalPanel mainPanel = new VerticalPanel();
    mainPanel.add(createServernamePanel());
    mainPanel.add(createPortPanel());
    mainPanel.add(createRootdnPanel());
    mainPanel.add(createTestPanel());
    mainPanel.add(testPanel());
    add(mainPanel, BorderLayout.CENTER);

    user_Defined.addItemListener(this);
    addTest.addItemListener(this);
    modifyTest.addItemListener(this);
View Full Code Here

    setLayout(new BorderLayout(0, 5));
    setBorder(makeBorder());

    add(makeTitlePanel(), BorderLayout.NORTH);

    VerticalPanel mainPanel = new VerticalPanel();

    ftpDefaultPanel = new FtpConfigGui(false);
    mainPanel.add(ftpDefaultPanel);

    loginPanel = new LoginConfigGui(false);
    loginPanel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("login_config"))); // $NON-NLS-1$
    mainPanel.add(loginPanel);

    add(mainPanel, BorderLayout.CENTER);
  }
View Full Code Here

    regexMatch = new JCheckBox(JMeterUtils.getResString("proxy_regex")); // $NON-NLS-1$
    regexMatch.setSelected(false);
    regexMatch.addActionListener(this);
    regexMatch.setActionCommand(ENABLE_RESTART);

    VerticalPanel mainPanel = new VerticalPanel();
    mainPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
        JMeterUtils.getResString("proxy_test_plan_content"))); // $NON-NLS-1$

    HorizontalPanel nodeCreationPanel = new HorizontalPanel();
    nodeCreationPanel.add(httpHeaders);
    nodeCreationPanel.add(addAssertions);
    nodeCreationPanel.add(regexMatch);
   
        HorizontalPanel targetPanel = new HorizontalPanel();
        targetPanel.add(createTargetPanel());
        targetPanel.add(createGroupingPanel());
        mainPanel.add(targetPanel);
    mainPanel.add(nodeCreationPanel);

    return mainPanel;
  }
View Full Code Here

   * the component at the beginning of the component's init method.
   *
   * @return a panel containing the component title and name panel
   */
  protected Container makeTitlePanel() {
    VerticalPanel titlePanel = new VerticalPanel();
    titlePanel.add(createTitleLabel());
    VerticalPanel contentPanel = new VerticalPanel();
    contentPanel.setBorder(BorderFactory.createEtchedBorder());
    contentPanel.add(getNamePanel());
    contentPanel.add(getCommentPanel());
    titlePanel.add(contentPanel);
    return titlePanel;
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.gui.util.VerticalPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.