当前位置: 首页>>代码示例>>Java>>正文


Java VerticalPanel.setBorder方法代码示例

本文整理汇总了Java中org.apache.jmeter.gui.util.VerticalPanel.setBorder方法的典型用法代码示例。如果您正苦于以下问题:Java VerticalPanel.setBorder方法的具体用法?Java VerticalPanel.setBorder怎么用?Java VerticalPanel.setBorder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.jmeter.gui.util.VerticalPanel的用法示例。


在下文中一共展示了VerticalPanel.setBorder方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/**
 * 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);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:29,代码来源:XMLSchemaAssertionGUI.java

示例2: createTestPlanContentPanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
private JPanel createTestPlanContentPanel() {
    httpHeaders = new JCheckBox(JMeterUtils.getResString("proxy_headers")); // $NON-NLS-1$
    httpHeaders.setSelected(true); // maintain original default
    httpHeaders.addActionListener(this);
    httpHeaders.setActionCommand(ENABLE_RESTART);

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

    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(createGroupingPanel());
    nodeCreationPanel.add(httpHeaders);
    nodeCreationPanel.add(addAssertions);
    nodeCreationPanel.add(regexMatch);

    HorizontalPanel targetPanel = new HorizontalPanel();
    targetPanel.add(createTargetPanel());
    mainPanel.add(targetPanel);
    mainPanel.add(nodeCreationPanel);

    return mainPanel;
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:34,代码来源:ProxyControlGui.java

示例3: makeTitlePanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/**
 * Create a standard title section for JMeter components. This includes the
 * title for the component and the Name Panel allowing the user to change
 * the name for the component. This method is typically added to the top of
 * 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;
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:19,代码来源:AbstractJMeterGuiComponent.java

示例4: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
private void init() {
    setLayout(new BorderLayout(0, 10));
    setBorder(makeBorder());

    add(makeTitlePanel(), BorderLayout.NORTH);

    JPanel mainPanel = new VerticalPanel();
    mainPanel.add(createScopePanel());

    // USER_INPUT
    VerticalPanel durationPanel = new VerticalPanel();
    durationPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            getDurationAttributesTitle()));

    JPanel labelPanel = new JPanel(new BorderLayout(5, 0));
    JLabel durationLabel =
        new JLabel(JMeterUtils.getResString("duration_assertion_label")); // $NON-NLS-1$
    labelPanel.add(durationLabel, BorderLayout.WEST);

    duration = new JTextField();
    labelPanel.add(duration, BorderLayout.CENTER);
    durationLabel.setLabelFor(duration);
    durationPanel.add(labelPanel);

    mainPanel.add(durationPanel);
    add(mainPanel, BorderLayout.CENTER);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:28,代码来源:DurationAssertionGui.java

示例5: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
private void init() {
    // THREAD PROPERTIES
    VerticalPanel threadPropsPanel = new VerticalPanel();
    threadPropsPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            JMeterUtils.getResString("thread_properties"))); // $NON-NLS-1$

    // NUMBER OF THREADS
    JPanel threadPanel = new JPanel(new BorderLayout(5, 0));

    JLabel threadLabel = new JLabel(JMeterUtils.getResString("number_of_threads")); // $NON-NLS-1$
    threadPanel.add(threadLabel, BorderLayout.WEST);

    threadInput = new JTextField(5);
    threadInput.setName(THREAD_NAME);
    threadLabel.setLabelFor(threadInput);
    threadPanel.add(threadInput, BorderLayout.CENTER);

    threadPropsPanel.add(threadPanel);

    // RAMP-UP
    JPanel rampPanel = new JPanel(new BorderLayout(5, 0));
    JLabel rampLabel = new JLabel(JMeterUtils.getResString("ramp_up")); // $NON-NLS-1$
    rampPanel.add(rampLabel, BorderLayout.WEST);

    rampInput = new JTextField(5);
    rampInput.setName(RAMP_NAME);
    rampLabel.setLabelFor(rampInput);
    rampPanel.add(rampInput, BorderLayout.CENTER);

    threadPropsPanel.add(rampPanel);

    // LOOP COUNT
    threadPropsPanel.add(createControllerPanel());

    // mainPanel.add(threadPropsPanel, BorderLayout.NORTH);
    // add(mainPanel, BorderLayout.CENTER);

    if (showDelayedStart) {
        delayedStart = new JCheckBox(JMeterUtils.getResString("delayed_start")); // $NON-NLS-1$
        threadPropsPanel.add(delayedStart);
    }
    scheduler = new JCheckBox(JMeterUtils.getResString("scheduler")); // $NON-NLS-1$
    scheduler.addItemListener(this);
    threadPropsPanel.add(scheduler);
    mainPanel = new VerticalPanel();
    mainPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            JMeterUtils.getResString("scheduler_configuration"))); // $NON-NLS-1$
    mainPanel.add(createStartTimePanel());
    mainPanel.add(createEndTimePanel());
    mainPanel.add(createDurationPanel());
    mainPanel.add(createDelayPanel());
    mainPanel.setVisible(false);
    VerticalPanel intgrationPanel = new VerticalPanel();
    intgrationPanel.add(threadPropsPanel);
    intgrationPanel.add(mainPanel);
    add(intgrationPanel, BorderLayout.CENTER);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:58,代码来源:ThreadGroupGui.java

示例6: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/**
 * Main visualizer setup.
 */
private void init() {
    this.setLayout(new BorderLayout());

    // MAIN PANEL
    JPanel mainPanel = new JPanel();
    Border margin = new EmptyBorder(10, 10, 5, 10);
    Border margin2 = new EmptyBorder(10, 10, 5, 10);

    mainPanel.setBorder(margin);
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    mainPanel.add(makeTitlePanel());

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

    settingsPane = new VerticalPanel();
    settingsPane.setBorder(margin2);

    graphPanel = new AxisGraph();
    graphPanel.setPreferredSize(new Dimension(defaultWidth, defaultHeight));

    settingsPane.add(createGraphActionsPane());
    settingsPane.add(createGraphColumnPane());
    settingsPane.add(createGraphTitlePane());
    settingsPane.add(createGraphDimensionPane());
    JPanel axisPane = new JPanel(new BorderLayout());
    axisPane.add(createGraphXAxisPane(), BorderLayout.WEST);
    axisPane.add(createGraphYAxisPane(), BorderLayout.CENTER);
    settingsPane.add(axisPane);
    settingsPane.add(createLegendPane());

    tabbedGraph.addTab(JMeterUtils.getResString("aggregate_graph_tab_settings"), settingsPane); //$NON-NLS-1$
    tabbedGraph.addTab(JMeterUtils.getResString("aggregate_graph_tab_graph"), graphPanel); //$NON-NLS-1$

    // If clic on the Graph tab, make the graph (without apply interval or filter)
    ChangeListener changeListener = new ChangeListener() {
        @Override
        public void stateChanged(ChangeEvent changeEvent) {
            JTabbedPane srcTab = (JTabbedPane) changeEvent.getSource();
            int index = srcTab.getSelectedIndex();
            if (srcTab.getTitleAt(index).equals(JMeterUtils.getResString("aggregate_graph_tab_graph"))) { //$NON-NLS-1$
                actionMakeGraph();
            }
        }
    };
    tabbedGraph.addChangeListener(changeListener);

    spane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    spane.setLeftComponent(myScrollPane);
    spane.setRightComponent(tabbedGraph);
    spane.setResizeWeight(.2);
    spane.setBorder(null); // see bug jdk 4131528
    spane.setContinuousLayout(true);

    this.add(mainPanel, BorderLayout.NORTH);
    this.add(spane, BorderLayout.CENTER);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:63,代码来源:StatGraphVisualizer.java

示例7: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/**
 * 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(), "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);
    assertionPanel.add(errorsOnly);

    // thresholds
    HorizontalPanel thresholdPanel = new HorizontalPanel();
    thresholdPanel.add(new JLabel("Error threshold:"));
    errorThresholdField = new JTextField("0", 5); // $NON-NLS-1$
    errorThresholdField.setName(ERROR_THRESHOLD_FIELD);
    errorThresholdField.addKeyListener(this);
    thresholdPanel.add(errorThresholdField);
    thresholdPanel.add(new JLabel("Warning threshold:"));
    warningThresholdField = new JTextField("0", 5); // $NON-NLS-1$
    warningThresholdField.setName(WARNING_THRESHOLD_FIELD);
    warningThresholdField.addKeyListener(this);
    thresholdPanel.add(warningThresholdField);
    assertionPanel.add(thresholdPanel);

    // file panel
    filePanel = new FilePanel(JMeterUtils.getResString("html_assertion_file"), ".txt"); //$NON-NLS-1$ //$NON-NLS-2$
    assertionPanel.add(filePanel);

    mainPanel.add(assertionPanel, BorderLayout.NORTH);
    add(mainPanel, BorderLayout.CENTER);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:67,代码来源:HTMLAssertionGui.java

示例8: createAssertionsPanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
protected JPanel createAssertionsPanel(){
	VerticalPanel panel = new VerticalPanel();
	panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),"Assertions"));
	
	panel.add(createAssertionClassDropDown());
	
	return panel;
	
}
 
开发者ID:johrstrom,项目名称:jmeter-prometheus-plugin,代码行数:10,代码来源:PrometheusListenerGui.java


注:本文中的org.apache.jmeter.gui.util.VerticalPanel.setBorder方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。