本文整理汇总了Java中org.apache.jmeter.gui.util.JTextScrollPane类的典型用法代码示例。如果您正苦于以下问题:Java JTextScrollPane类的具体用法?Java JTextScrollPane怎么用?Java JTextScrollPane使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JTextScrollPane类属于org.apache.jmeter.gui.util包,在下文中一共展示了JTextScrollPane类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createScriptPanel
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的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;
}
示例2: createScriptPanel
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的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;
}
示例3: init
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的package包/类
private void init() {
Box hbox = Box.createHorizontalBox();
hbox.add(Box.createHorizontalGlue());
hbox.add(new JTextScrollPane(getXPathField()));
hbox.add(Box.createHorizontalGlue());
hbox.add(getCheckXPathButton());
Box vbox = Box.createVerticalBox();
vbox.add(hbox);
vbox.add(Box.createVerticalGlue());
vbox.add(getNegatedCheckBox());
add(vbox);
setDefaultValues();
}
示例4: createRequestPanel
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的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;
}
示例5: getParameterPanel
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的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;
}
示例6: init
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的package包/类
/**
* init() adds jndiICF to the mainPanel. The class reuses logic from
* SOAPSampler, since it is common.
*/
private void init() {
setLayout(new BorderLayout());
setBorder(makeBorder());
add(makeTitlePanel(), BorderLayout.NORTH);
JPanel mainPanel = new VerticalPanel();
add(mainPanel, BorderLayout.CENTER);
mainPanel.add(useProperties);
mainPanel.add(jndiICF);
mainPanel.add(urlField);
mainPanel.add(jndiConnFac);
mainPanel.add(createDestinationPane());
mainPanel.add(createAuthPane());
mainPanel.add(iterations);
jmsPropertiesPanel = new ArgumentsPanel(JMeterUtils.getResString("jms_props")); //$NON-NLS-1$
mainPanel.add(jmsPropertiesPanel);
configChoice.setLayout(new BoxLayout(configChoice, BoxLayout.X_AXIS));
mainPanel.add(configChoice);
msgChoice.setLayout(new BoxLayout(msgChoice, BoxLayout.X_AXIS));
mainPanel.add(msgChoice);
mainPanel.add(messageFile);
mainPanel.add(randomFile);
JPanel messageContentPanel = new JPanel(new BorderLayout());
messageContentPanel.add(new JLabel(JMeterUtils.getResString("jms_text_area")), BorderLayout.NORTH);
messageContentPanel.add(new JTextScrollPane(textMessage), BorderLayout.CENTER);
mainPanel.add(messageContentPanel);
useProperties.addChangeListener(this);
useAuth.addChangeListener(this);
configChoice.addChangeListener(this);
msgChoice.addChangeListener(this);
}
示例7: TextAreaEditor
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的package包/类
/**
*
*/
public TextAreaEditor() {
super();
textUI = new JSyntaxTextArea(20, 20);
scroller = new JTextScrollPane(textUI, true);
init();
}
示例8: init
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的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);
}
示例9: init
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的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);
}
示例10: init
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的package包/类
/**
* Initializes the configuration screen.
*
*/
private void init() {
setLayout(new BorderLayout());
setBorder(makeBorder());
add(makeTitlePanel(), BorderLayout.NORTH);
JPanel jmsQueueingPanel = new JPanel(new BorderLayout());
jmsQueueingPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
JMeterUtils.getResString("jms_queueing"))); //$NON-NLS-1$
JPanel qcfPanel = new JPanel(new BorderLayout(5, 0));
qcfPanel.add(queueConnectionFactory, BorderLayout.CENTER);
jmsQueueingPanel.add(qcfPanel, BorderLayout.NORTH);
JPanel sendQueuePanel = new JPanel(new BorderLayout(5, 0));
sendQueuePanel.add(sendQueue);
jmsQueueingPanel.add(sendQueuePanel, BorderLayout.CENTER);
JPanel receiveQueuePanel = new JPanel(new BorderLayout(5, 0));
receiveQueuePanel.add(jmsSelector,BorderLayout.SOUTH);
receiveQueuePanel.add(receiveQueue,BorderLayout.NORTH);
jmsQueueingPanel.add(receiveQueuePanel, BorderLayout.SOUTH);
JPanel messagePanel = new JPanel(new BorderLayout());
messagePanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
JMeterUtils.getResString("jms_message_title"))); //$NON-NLS-1$
JPanel correlationPanel = new HorizontalPanel();
correlationPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
JMeterUtils.getResString("jms_correlation_title"))); //$NON-NLS-1$
useReqMsgIdAsCorrelId = new JCheckBox(JMeterUtils.getResString("jms_use_req_msgid_as_correlid"),false); //$NON-NLS-1$
useResMsgIdAsCorrelId = new JCheckBox(JMeterUtils.getResString("jms_use_res_msgid_as_correlid"),false); //$NON-NLS-1$
correlationPanel.add(useReqMsgIdAsCorrelId);
correlationPanel.add(useResMsgIdAsCorrelId);
JPanel messageNorthPanel = new JPanel(new BorderLayout());
JPanel onewayPanel = new HorizontalPanel();
onewayPanel.add(oneWay);
onewayPanel.add(correlationPanel);
messageNorthPanel.add(onewayPanel, BorderLayout.NORTH);
useNonPersistentDelivery = new JCheckBox(JMeterUtils.getResString("jms_use_non_persistent_delivery"),false); //$NON-NLS-1$
JPanel timeoutPanel = new HorizontalPanel();
timeoutPanel.add(timeout);
timeoutPanel.add(useNonPersistentDelivery);
messageNorthPanel.add(timeoutPanel, BorderLayout.SOUTH);
messagePanel.add(messageNorthPanel, BorderLayout.NORTH);
JPanel messageContentPanel = new JPanel(new BorderLayout());
messageContentPanel.add(new JLabel(JMeterUtils.getResString("jms_msg_content")), BorderLayout.NORTH);
messageContentPanel.add(new JTextScrollPane(messageContent), BorderLayout.CENTER);
Dimension pref = new Dimension(400, 150);
messageContent.setPreferredSize(pref);
messagePanel.add(messageContentPanel, BorderLayout.CENTER);
jmsPropertiesPanel = new ArgumentsPanel(JMeterUtils.getResString("jms_props")); //$NON-NLS-1$
messagePanel.add(jmsPropertiesPanel, BorderLayout.SOUTH);
Box mainPanel = Box.createVerticalBox();
add(mainPanel, BorderLayout.CENTER);
mainPanel.add(jmsQueueingPanel, BorderLayout.NORTH);
mainPanel.add(messagePanel, BorderLayout.CENTER);
JPanel jndiPanel = createJNDIPanel();
mainPanel.add(jndiPanel, BorderLayout.SOUTH);
}
示例11: init
import org.apache.jmeter.gui.util.JTextScrollPane; //导入依赖的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);
}