/** Inits the GUI. */
  private void init() {
    setLayout(new BorderLayout(0, 10));
    setBorder(makeBorder());

    add(makeTitlePanel(), BorderLayout.NORTH);

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

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

    // doctype
    HorizontalPanel xmlSchemaPanel = new HorizontalPanel();

    xmlSchemaPanel.add(
        new JLabel(JMeterUtils.getResString("xmlschema_assertion_label"))); // $NON-NLS-1$

    xmlSchema = new JTextField(26);
    xmlSchemaPanel.add(xmlSchema);

    assertionPanel.add(xmlSchemaPanel);

    mainPanel.add(assertionPanel, BorderLayout.NORTH);
    add(mainPanel, BorderLayout.CENTER);
  }
Ejemplo n.º 2
0
  private void init() { // called from ctor, so must not be overridable
    setLayout(new BorderLayout(10, 10));
    setBorder(makeBorder());
    setBackground(Color.white);

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