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


Java VerticalPanel.add方法代码示例

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


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

示例1: createLeftPanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
private synchronized Component createLeftPanel() {
    SampleResult rootSampleResult = new SampleResult();
    rootSampleResult.setSampleLabel("Root");
    rootSampleResult.setSuccessful(true);
    root = new SearchableTreeNode(rootSampleResult, null);

    treeModel = new DefaultTreeModel(root);
    jTree = new JTree(treeModel);
    jTree.setCellRenderer(new ResultsNodeRenderer());
    jTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
    jTree.addTreeSelectionListener(this);
    jTree.setRootVisible(false);
    jTree.setShowsRootHandles(true);
    JScrollPane treePane = new JScrollPane(jTree);
    treePane.setPreferredSize(new Dimension(200, 300));

    VerticalPanel leftPane = new VerticalPanel();
    leftPane.add(treePane, BorderLayout.CENTER);
    leftPane.add(createComboRender(), BorderLayout.NORTH);
    autoScrollCB = new JCheckBox(JMeterUtils.getResString("view_results_autoscroll")); // $NON-NLS-1$
    autoScrollCB.setSelected(false);
    autoScrollCB.addItemListener(this);
    leftPane.add(autoScrollCB, BorderLayout.SOUTH);
    return leftPane;
}
 
开发者ID:Blazemeter,项目名称:jmeter-bzm-plugins,代码行数:26,代码来源:ViewResultsFullVisualizer.java

示例2: init

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

    add(makeTitlePanel(), BorderLayout.NORTH);

    VerticalPanel mainPanel = new VerticalPanel();

    tcpDefaultPanel = new TCPConfigGui(false);
    mainPanel.add(tcpDefaultPanel);

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

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

示例3: init

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

    add(makeTitlePanel(), BorderLayout.NORTH);

    VerticalPanel mainPanel = new VerticalPanel();

    argumentName = new JLabeledTextField(JMeterUtils.getResString("session_argument_name"), 10); // $NON-NLS-1$
    mainPanel.add(argumentName);

    pathExt = new JCheckBox(JMeterUtils.getResString("path_extension_choice")); // $NON-NLS-1$
    mainPanel.add(pathExt);

    pathExtNoEquals = new JCheckBox(JMeterUtils.getResString("path_extension_dont_use_equals")); // $NON-NLS-1$
    mainPanel.add(pathExtNoEquals);

    pathExtNoQuestionmark = new JCheckBox(JMeterUtils.getResString("path_extension_dont_use_questionmark")); // $NON-NLS-1$
    mainPanel.add(pathExtNoQuestionmark);

    shouldCache = new JCheckBox(JMeterUtils.getResString("cache_session_id")); // $NON-NLS-1$
    shouldCache.setSelected(true);
    mainPanel.add(shouldCache);

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

示例4: createComparePanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/***************************************************************************
 * This will create the bind panel in the LdapConfigGui
 **************************************************************************/
private JPanel createComparePanel() {
    VerticalPanel cbindPanel = new VerticalPanel();
    JPanel cBPanel = new JPanel(new BorderLayout(5, 0));
    JLabel cBlabel0 = new JLabel(JMeterUtils.getResString("entrydn")); // $NON-NLS-1$
    cBlabel0.setLabelFor(comparedn);
    cBPanel.add(cBlabel0, BorderLayout.WEST);
    cBPanel.add(comparedn, BorderLayout.CENTER);
    cbindPanel.add(cBPanel);

    JPanel cBPanel1 = new JPanel(new BorderLayout(5, 0));
    JLabel cBlabel1 = new JLabel(JMeterUtils.getResString("comparefilt")); // $NON-NLS-1$
    cBlabel1.setLabelFor(comparefilt);
    cBPanel1.add(cBlabel1, BorderLayout.WEST);
    cBPanel1.add(comparefilt, BorderLayout.CENTER);
    cbindPanel.add(cBPanel1);

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

示例5: createSearchPanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/***************************************************************************
 * 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("searchbase")); // $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 label20 = new JLabel(JMeterUtils.getResString("searchfilter")); // $NON-NLS-1$
    label20.setLabelFor(searchfilter);
    searchFPanel.add(label20, BorderLayout.WEST);
    searchFPanel.add(searchfilter, BorderLayout.CENTER);

    searchPanel.add(searchBPanel);
    searchPanel.add(searchFPanel);
    searchPanel.add(createSCPanel());

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

示例6: createModdnPanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/***************************************************************************
 * This will create the Moddn panel in the LdapConfigGui
 **************************************************************************/

private JPanel createModdnPanel() {
    VerticalPanel modPanel = new VerticalPanel();

    JPanel renamePanel = new JPanel(new BorderLayout(5, 0));
    JLabel labelmod = new JLabel(JMeterUtils.getResString("modddn")); // $NON-NLS-1$
    labelmod.setLabelFor(modddn);
    renamePanel.add(labelmod, BorderLayout.WEST);
    renamePanel.add(modddn, BorderLayout.CENTER);

    JPanel rename2Panel = new JPanel(new BorderLayout(5, 0));
    JLabel labelmod2 = new JLabel(JMeterUtils.getResString("newdn")); // $NON-NLS-1$
    labelmod2.setLabelFor(newdn);
    rename2Panel.add(labelmod2, BorderLayout.WEST);
    rename2Panel.add(newdn, BorderLayout.CENTER);

    modPanel.add(renamePanel);
    modPanel.add(rename2Panel);
    return modPanel;
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:24,代码来源:LdapExtConfigGui.java

示例7: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/***************************************************************************
 * This will initalise all the panel in the LdapConfigGui
 **************************************************************************/
private void init() {
    setLayout(new BorderLayout(0, 5));
    if (displayName) {
        setBorder(makeBorder());
        add(makeTitlePanel(), BorderLayout.NORTH);
    }
    VerticalPanel mainPanel = new VerticalPanel();
    mainPanel.add(createTestPanel());
    mainPanel.add(testPanel());
    add(mainPanel, BorderLayout.CENTER);
    // Take note of when buttong are changed so can change panel
    bind.addItemListener(this);
    sbind.addItemListener(this);
    unbind.addItemListener(this);
    compare.addItemListener(this);
    addTest.addItemListener(this);
    modifyTest.addItemListener(this);
    rename.addItemListener(this);
    deleteTest.addItemListener(this);
    searchTest.addItemListener(this);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:25,代码来源:LdapExtConfigGui.java

示例8: createSearchPanel

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

示例9: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/**
 * This will initialise all the panel in the LdapConfigGui.
 */
private void init() {
    setLayout(new BorderLayout(0, 5));

    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);
    deleteTest.addItemListener(this);
    searchTest.addItemListener(this);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:25,代码来源:LdapConfigGui.java

示例10: createTopMostPanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/**
 * Create the panel that holds all the other panels (except for the title panel)
 * 
 * @return - the top most JPanel
 */
protected JPanel createTopMostPanel(){
	VerticalPanel panel = new VerticalPanel();
	
	panel.add(this.createServerPanel());
	panel.add(this.createLabelsPanel());
	panel.add(this.createAssertionsPanel());
	
	return panel;
}
 
开发者ID:johrstrom,项目名称:jmeter-prometheus-plugin,代码行数:15,代码来源:PrometheusListenerGui.java

示例11: createClassPanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
private JPanel createClassPanel()
{
    JLabel label =
            new JLabel(JMeterUtils.getResString("protocol_java_classname")); //$NON-NLS-1$

    classnameCombo = new JComboBox();
    classnameCombo.addActionListener(this);
    classnameCombo.setEditable(false);
    label.setLabelFor(classnameCombo);

    methodName = new JComboBox();
    methodName.addActionListener(this);
    methodLabel.setLabelFor(methodName);

    setupClasslist();

    VerticalPanel panel = new VerticalPanel();
    panel.add(filterpkg);
    filterpkg.addChangeListener(this);

    panel.add(label);
    panel.add(classnameCombo);

    constructorLabel.setText("");
    panel.add(constructorLabel);
    panel.add(methodLabel);
    panel.add(methodName);

    panel.add(successMsg);
    panel.add(successCode);
    panel.add(failureMsg);
    panel.add(failureCode);
    panel.add(errorMsg);
    panel.add(errorCode);
    panel.add(doSetup);
    panel.add(appendError);
    panel.add(appendExc);
    panel.add(createInstancePerSample);
    return panel;
}
 
开发者ID:gabehamilton,项目名称:jmeter-spock-sampler,代码行数:41,代码来源:SpockSamplerGui.java

示例12: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/**
 * Initialize the components and layout of this component.
 */
private void init() {
    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);
    pageTitle.setBackground(Color.white);
    makeIndex.setBackground(Color.white);
    cssURL.setBackground(Color.white);
    headerURL.setBackground(Color.white);
    footerURL.setBackground(Color.white);
    introduction.setBackground(Color.white);
    options.add(pageTitle);
    options.add(makeIndex);
    options.add(cssURL);
    options.add(headerURL);
    options.add(footerURL);
    options.add(introduction);
    add(pane,BorderLayout.NORTH);
    add(options,BorderLayout.CENTER);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:30,代码来源:ReportPageGui.java

示例13: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/**
 * Initialize the components and layout of this component.
 */
private void init() {
    setLayout(new BorderLayout(0, 5));

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

    VerticalPanel mainPanel = new VerticalPanel();
    mainPanel.add(createUsernamePanel());
    mainPanel.add(createPasswordPanel());
    add(mainPanel, BorderLayout.CENTER);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:17,代码来源:LoginConfigGui.java

示例14: makeTitlePanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入方法依赖的package包/类
/**
 * This implementaion differs a bit from the normal jmeter gui. it uses
 * a white background instead of the default grey.
 * @return a panel containing the component title and name panel
 */
@Override
protected Container makeTitlePanel() {
    VerticalPanel titlePanel = new VerticalPanel();
    titlePanel.setBackground(Color.white);
    titlePanel.add(createTitleLabel());
    titlePanel.add(getNamePanel());
    return titlePanel;
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:14,代码来源:AbstractReportGui.java

示例15: init

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

    serverPanel = new ServerPanel();
    
    if (displayName) {
        setBorder(makeBorder());
        add(makeTitlePanel(), BorderLayout.NORTH);
    }

    VerticalPanel mainPanel = new VerticalPanel();
    classname = new JLabeledTextField(JMeterUtils.getResString("tcp_classname")); // $NON-NLS-1$
    mainPanel.add(classname);
    mainPanel.add(serverPanel);
    
    HorizontalPanel optionsPanel = new HorizontalPanel();
    optionsPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder()));
    optionsPanel.add(createClosePortPanel());
    optionsPanel.add(createCloseConnectionPanel());
    optionsPanel.add(createNoDelayPanel());
    optionsPanel.add(createSoLingerOption());
    optionsPanel.add(createEolBytePanel());
    mainPanel.add(optionsPanel);
    mainPanel.add(createRequestPanel());

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


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