• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java JSyntaxTextArea类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.jmeter.gui.util.JSyntaxTextArea的典型用法代码示例。如果您正苦于以下问题:Java JSyntaxTextArea类的具体用法?Java JSyntaxTextArea怎么用?Java JSyntaxTextArea使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



JSyntaxTextArea类属于org.apache.jmeter.gui.util包,在下文中一共展示了JSyntaxTextArea类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createScriptPanel

import org.apache.jmeter.gui.util.JSyntaxTextArea; //导入依赖的package包/类
private JPanel createScriptPanel() {
    scriptField = new JSyntaxTextArea(20, 20);

    JLabel label = new JLabel(JMeterUtils.getResString("bsh_script")); // $NON-NLS-1$
    label.setLabelFor(scriptField);

    JPanel panel = new JPanel(new BorderLayout());
    panel.add(label, BorderLayout.NORTH);
    panel.add(new JTextScrollPane(scriptField), BorderLayout.CENTER);

    JTextArea explain = new JTextArea(JMeterUtils.getResString("bsh_script_variables")); //$NON-NLS-1$
    explain.setLineWrap(true);
    explain.setEditable(false);
    explain.setBackground(this.getBackground());
    panel.add(explain, BorderLayout.SOUTH);

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


示例2: createScriptPanel

import org.apache.jmeter.gui.util.JSyntaxTextArea; //导入依赖的package包/类
private JPanel createScriptPanel() {
    scriptField = new JSyntaxTextArea(20,20);

    JLabel label = new JLabel(JMeterUtils.getResString("bsh_assertion_script")); //$NON-NLS-1$
    label.setLabelFor(scriptField);

    JPanel panel = new JPanel(new BorderLayout());
    panel.add(label, BorderLayout.NORTH);
    panel.add(new JTextScrollPane(scriptField), BorderLayout.CENTER);

    JTextArea explain = new JTextArea(JMeterUtils.getResString("bsh_assertion_script_variables")); //$NON-NLS-1$
    explain.setLineWrap(true);
    explain.setEditable(false);
    explain.setBackground(this.getBackground());
    panel.add(explain, BorderLayout.SOUTH);

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


示例3: LoggerPanelWrapping

import org.apache.jmeter.gui.util.JSyntaxTextArea; //导入依赖的package包/类
public LoggerPanelWrapping() {
    super();

    ComponentFinder<JSyntaxTextArea> finder = new ComponentFinder<>(JSyntaxTextArea.class);
    area = finder.findComponentIn(this);
    area.setLineWrap(true);
}
 
开发者ID:Blazemeter,项目名称:jmeter-debugger,代码行数:8,代码来源:LoggerPanelWrapping.java


示例4: createRequestPanel

import org.apache.jmeter.gui.util.JSyntaxTextArea; //导入依赖的package包/类
private JPanel createRequestPanel() {
    JLabel reqLabel = new JLabel(JMeterUtils.getResString("tcp_request_data")); // $NON-NLS-1$
    requestData = new JSyntaxTextArea(15, 80);
    requestData.setLanguage("text"); //$NON-NLS-1$
    reqLabel.setLabelFor(requestData);

    JPanel reqDataPanel = new JPanel(new BorderLayout(5, 0));
    reqDataPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder()));

    reqDataPanel.add(reqLabel, BorderLayout.WEST);
    reqDataPanel.add(new JTextScrollPane(requestData), BorderLayout.CENTER);
    return reqDataPanel;
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:14,代码来源:TCPConfigGui.java


示例5: getParameterPanel

import org.apache.jmeter.gui.util.JSyntaxTextArea; //导入依赖的package包/类
protected JTabbedPane getParameterPanel() {
    postContentTabbedPane = new ValidationTabbedPane();
    argsPanel = new HTTPArgumentsPanel();
    postContentTabbedPane.add(JMeterUtils.getResString("post_as_parameters"), argsPanel);// $NON-NLS-1$
    if(showRawBodyPane) {
        postBodyContent = new JSyntaxTextArea(30, 50);// $NON-NLS-1$
        postContentTabbedPane.add(JMeterUtils.getResString("post_body"), new JTextScrollPane(postBodyContent));// $NON-NLS-1$
    }
    return postContentTabbedPane;
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:11,代码来源:UrlConfigGui.java


示例6: TextAreaEditor

import org.apache.jmeter.gui.util.JSyntaxTextArea; //导入依赖的package包/类
/**
 *
 */
public TextAreaEditor() {
    super();
    textUI = new JSyntaxTextArea(20, 20);
    scroller = new JTextScrollPane(textUI, true);
    init();
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:10,代码来源:TextAreaEditor.java


示例7: init

import org.apache.jmeter.gui.util.JSyntaxTextArea; //导入依赖的package包/类
private void init() {
    this.setLayout(new BorderLayout());

    // TEXTAREA
    textArea = new JSyntaxTextArea(15, 50, true);
    textArea.setEditable(false);
    textArea.setLineWrap(false);
    textArea.setLanguage("text");
    textArea.setMargin(new Insets(2, 2, 2, 2)); // space between borders and text
    JScrollPane areaScrollPane = new JTextScrollPane(textArea);

    areaScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    areaScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    this.add(areaScrollPane, BorderLayout.CENTER); 
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:16,代码来源:LoggerPanel.java


示例8: init

import org.apache.jmeter.gui.util.JSyntaxTextArea; //导入依赖的package包/类
public void init() {
    initComponents();
    
    
    postContentTabbedPane = new ValidationTabbedPane();
    argsPanel = new HTTPArgumentsPanel();
    postContentTabbedPane.add(JMeterUtils.getResString("post_as_parameters"), argsPanel);// $NON-NLS-1$
    
    int indx = TAB_PARAMETERS;
    
    tabRawBodyIndex = ++indx;
    postBodyContent = JSyntaxTextArea.getInstance(30, 50);// $NON-NLS-1$
    postContentTabbedPane.add(JMeterUtils.getResString("post_body"), JTextScrollPane.getInstance(postBodyContent));// $NON-NLS-1$

    tabFileUploadIndex = ++indx;
    filesPanel = new HTTPFileArgsPanel();
    postContentTabbedPane.add(JMeterUtils.getResString("post_files_upload"), filesPanel);            


    parametersPanel.add(postContentTabbedPane);
}
 
开发者ID:Blazemeter,项目名称:jmeter-bzm-plugins,代码行数:22,代码来源:HTTP2RequestPanel.java


示例9: init

import org.apache.jmeter.gui.util.JSyntaxTextArea; //导入依赖的package包/类
private void init() {
    this.getContentPane().setLayout(new BorderLayout(10,10));

    nameLabel = new JLabel(JMeterUtils.getResString("name")); //$NON-NLS-1$
    nameTF = new JTextField(JMeterUtils.getResString("name"), 20); //$NON-NLS-1$
    nameTF.getDocument().addDocumentListener(this);
    JPanel namePane = new JPanel(new BorderLayout());
    namePane.add(nameLabel, BorderLayout.WEST);
    namePane.add(nameTF, BorderLayout.CENTER);

    valueLabel = new JLabel(JMeterUtils.getResString("value")); //$NON-NLS-1$
    valueTA = new JSyntaxTextArea(30, 80);
    valueTA.getDocument().addDocumentListener(this);
    setValues(selectedRow);
    JPanel valuePane = new JPanel(new BorderLayout());
    valuePane.add(valueLabel, BorderLayout.NORTH);
    JTextScrollPane jTextScrollPane = new JTextScrollPane(valueTA);
    valuePane.add(jTextScrollPane, BorderLayout.CENTER);

    JPanel detailPanel = new JPanel(new BorderLayout());
    detailPanel.add(namePane, BorderLayout.NORTH);
    detailPanel.add(valuePane, BorderLayout.CENTER);

    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    mainPanel.setBorder(BorderFactory.createEmptyBorder(7, 3, 3, 3));
    mainPanel.add(detailPanel, BorderLayout.CENTER);

    JPanel buttonsPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));

    JButton updateButton = new JButton(JMeterUtils.getResString("update")); //$NON-NLS-1$
    updateButton.setActionCommand(UPDATE);
    updateButton.addActionListener(this);
    closeButton = new JButton(JMeterUtils.getResString("close")); //$NON-NLS-1$
    closeButton.setActionCommand(CLOSE);
    closeButton.addActionListener(this);
    nextButton = new JButton(JMeterUtils.getResString("next")); //$NON-NLS-1$
    nextButton.setActionCommand(NEXT);
    nextButton.addActionListener(this);
    nextButton.setEnabled(selectedRow < tableModel.getRowCount()-1);
    previousButton = new JButton(JMeterUtils.getResString("previous")); //$NON-NLS-1$
    previousButton.setActionCommand(PREVIOUS);
    previousButton.addActionListener(this);
    previousButton.setEnabled(selectedRow > 0);

    buttonsPanel.add(updateButton);
    buttonsPanel.add(previousButton);
    buttonsPanel.add(nextButton);
    buttonsPanel.add(closeButton);
    mainPanel.add(buttonsPanel, BorderLayout.SOUTH);
    this.getContentPane().add(mainPanel);
    nameTF.requestFocusInWindow();

    this.pack();
    ComponentUtil.centerComponentInWindow(this);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:57,代码来源:RowDetailDialog.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Metadata类代码示例发布时间:2022-05-23
下一篇:
Java ComponentDefinition类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap