/** 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);
  }
  public void init() {
    setLayout(new BorderLayout());
    setBorder(makeBorder());
    add(makeTitlePanel(), BorderLayout.NORTH);

    VerticalPanel panel = new VerticalPanel();
    panel.setBorder(BorderFactory.createEtchedBorder());
    nameNodeTextField = new JLabeledTextField("Namenode");
    inputFilePathTextField = new JLabeledTextField("Input file destination");
    outputFilePathTextField = new JLabeledTextField("Output destination on HDFS");

    panel.add(nameNodeTextField);
    panel.add(inputFilePathTextField);
    panel.add(outputFilePathTextField);
    add(panel, BorderLayout.CENTER);
  }
Пример #3
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);
  }
Пример #4
0
  /** Initialize the components and layout of this component. */
  private void init() {
    setLayout(new BorderLayout(10, 10));
    setBorder(makeBorder());

    add(makeTitlePanel(), BorderLayout.NORTH);

    add(argsPanel, BorderLayout.CENTER);

    VerticalPanel southPanel = new VerticalPanel();
    southPanel.add(serializedMode);
    southPanel.add(tearDownOnShutdown);
    southPanel.add(functionalMode);
    JTextArea explain =
        new JTextArea(JMeterUtils.getResString("functional_mode_explanation")); // $NON-NLS-1$
    explain.setEditable(false);
    explain.setBackground(this.getBackground());
    southPanel.add(explain);
    southPanel.add(browseJar);

    add(southPanel, BorderLayout.SOUTH);
  }
Пример #5
0
  private void init() {
    setLayout(new BorderLayout(0, 5));

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

    VerticalPanel mainPanel = new VerticalPanel();
    classname = new JLabeledTextField(JMeterUtils.getResString("tcp_classname"));
    mainPanel.add(classname);
    final JPanel serverPanel = createServerPanel();
    serverPanel.add(createPortPanel(), BorderLayout.EAST);
    mainPanel.add(serverPanel);
    mainPanel.add(createClosePortPanel());
    mainPanel.add(createTimeoutPanel());
    mainPanel.add(createNoDelayPanel());
    mainPanel.add(createRequestPanel());

    // mainPanel.add(createFilenamePanel());
    add(mainPanel, BorderLayout.CENTER);
  }