本文整理汇总了Java中org.apache.jorphan.gui.JLabeledTextField类的典型用法代码示例。如果您正苦于以下问题:Java JLabeledTextField类的具体用法?Java JLabeledTextField怎么用?Java JLabeledTextField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JLabeledTextField类属于org.apache.jorphan.gui包,在下文中一共展示了JLabeledTextField类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createEmbeddedRsrcPanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
protected JPanel createEmbeddedRsrcPanel() {
// retrieve Embedded resources
retrieveEmbeddedResources = new JCheckBox(JMeterUtils.getResString("web_testing_retrieve_images")); // $NON-NLS-1$
final JPanel embeddedRsrcPanel = new HorizontalPanel();
embeddedRsrcPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils
.getResString("web_testing_retrieve_title"))); // $NON-NLS-1$
embeddedRsrcPanel.add(retrieveEmbeddedResources);
// Embedded URL match regex
embeddedRE = new JLabeledTextField(JMeterUtils.getResString("web_testing_embedded_url_pattern"),20); // $NON-NLS-1$
embeddedRsrcPanel.add(embeddedRE);
return embeddedRsrcPanel;
}
开发者ID:Blazemeter,项目名称:jmeter-bzm-plugins,代码行数:17,代码来源:HTTP2RequestGui.java
示例2: createOptionalTasksPanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
private JPanel createOptionalTasksPanel() {
// OPTIONAL TASKS
JPanel optionalTasksPanel = new VerticalPanel();
optionalTasksPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
JMeterUtils.getResString("optional_tasks"))); //$NON-NLS-1$
JPanel checkBoxPanel = new HorizontalPanel();
// RETRIEVE IMAGES
getImages = new JCheckBox(JMeterUtils.getResString("web_testing_retrieve_images")); //$NON-NLS-1$
// Is monitor
isMon = new JCheckBox(JMeterUtils.getResString("monitor_is_title")); //$NON-NLS-1$
// Use MD5
useMD5 = new JCheckBox(JMeterUtils.getResString("response_save_as_md5")); //$NON-NLS-1$
checkBoxPanel.add(getImages);
checkBoxPanel.add(isMon);
checkBoxPanel.add(useMD5);
optionalTasksPanel.add(checkBoxPanel);
// Embedded URL match regex
embeddedRE = new JLabeledTextField(JMeterUtils.getResString("web_testing_embedded_url_pattern"),30); //$NON-NLS-1$
optionalTasksPanel.add(embeddedRE);
return optionalTasksPanel;
}
开发者ID:groovenauts,项目名称:jmeter_oauth_plugin,代码行数:25,代码来源:OAuthSamplerGui.java
示例3: init
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的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: makeParameterPanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
private JPanel makeParameterPanel() {
refRegExRefNameField = new JLabeledTextField(JMeterUtils.getResString("regex_params_ref_name_field")); //$NON-NLS-1$
paramNamesGrNrField = new JLabeledTextField(JMeterUtils.getResString("regex_params_names_field")); //$NON-NLS-1$
paramValuesGrNrField = new JLabeledTextField(JMeterUtils.getResString("regex_params_values_field")); //$NON-NLS-1$
JPanel panel = new JPanel(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
initConstraints(gbc);
addField(panel, refRegExRefNameField, gbc);
resetContraints(gbc);
addField(panel, paramNamesGrNrField, gbc);
resetContraints(gbc);
gbc.weighty = 1;
addField(panel, paramValuesGrNrField, gbc);
return panel;
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:17,代码来源:RegExUserParametersGui.java
示例5: makeReturnCodePanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
/**
* @return JPanel return code config
*/
private JPanel makeReturnCodePanel() {
JPanel panel = new JPanel();
panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
panel.setBorder(BorderFactory.createTitledBorder(
BorderFactory.createEtchedBorder(),
JMeterUtils.getResString("return_code_config_box_title"))); // $NON-NLS-1$
checkReturnCode = new JCheckBox(JMeterUtils.getResString("check_return_code_title")); // $NON-NLS-1$
checkReturnCode.addItemListener(this);
desiredReturnCode = new JLabeledTextField(JMeterUtils.getResString("expected_return_code_title")); // $NON-NLS-1$
desiredReturnCode.setSize(desiredReturnCode.getSize().height, 30);
panel.add(checkReturnCode);
panel.add(Box.createHorizontalStrut(5));
panel.add(desiredReturnCode);
checkReturnCode.setSelected(true);
return panel;
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:20,代码来源:SystemSamplerGui.java
示例6: makeCommandPanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
/**
* @return JPanel Command + directory
*/
private JPanel makeCommandPanel() {
JPanel cmdPanel = new JPanel();
cmdPanel.setLayout(new BoxLayout(cmdPanel, BoxLayout.X_AXIS));
JPanel cmdWkDirPane = new JPanel(new BorderLayout());
command = new JLabeledTextField(JMeterUtils.getResString("command_field_title")); // $NON-NLS-1$
cmdWkDirPane.add(command, BorderLayout.CENTER);
directory = new JLabeledTextField(JMeterUtils.getResString("directory_field_title")); // $NON-NLS-1$
cmdWkDirPane.add(directory, BorderLayout.EAST);
cmdPanel.add(cmdWkDirPane);
JPanel panel = new VerticalPanel();
panel.setBorder(BorderFactory.createTitledBorder(
BorderFactory.createEtchedBorder(),
JMeterUtils.getResString("command_config_box_title"))); // $NON-NLS-1$
panel.add(cmdPanel, BorderLayout.NORTH);
panel.add(makeArgumentsPanel(), BorderLayout.CENTER);
panel.add(makeEnvironmentPanel(), BorderLayout.SOUTH);
return panel;
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:24,代码来源:SystemSamplerGui.java
示例7: init
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
private void init() {
setLayout(new BorderLayout());
setBorder(makeBorder());
Box box = Box.createVerticalBox();
box.add(makeTitlePanel());
box.add(createFilenamePrefixPanel());
box.add(createVariableNamePanel());
errorsOnly = new JCheckBox(JMeterUtils.getResString("resultsaver_errors")); // $NON-NLS-1$
box.add(errorsOnly);
successOnly = new JCheckBox(JMeterUtils.getResString("resultsaver_success")); // $NON-NLS-1$
box.add(successOnly);
skipAutoNumber = new JCheckBox(JMeterUtils.getResString("resultsaver_skipautonumber")); // $NON-NLS-1$
box.add(skipAutoNumber);
skipSuffix = new JCheckBox(JMeterUtils.getResString("resultsaver_skipsuffix")); // $NON-NLS-1$
box.add(skipSuffix);
addTimestamp = new JCheckBox(JMeterUtils.getResString("resultsaver_addtimestamp")); // $NON-NLS-1$
box.add(addTimestamp);
numberPadLength = new JLabeledTextField(JMeterUtils.getResString("resultsaver_numberpadlen"));// $NON-NLS-1$
box.add(numberPadLength);
add(box, BorderLayout.NORTH);
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:22,代码来源:ResultSaverGui.java
示例8: init
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
private void init() {
parameterPanel = new ArgumentsPanel(JMeterUtils.getResString("function_params"), false); //$NON-NLS-1$
initializeFunctionList();
this.getContentPane().setLayout(new BorderLayout(10, 10));
JPanel comboPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
comboPanel.add(functionList);
JButton helpButton = new JButton(JMeterUtils.getResString("help")); //$NON-NLS-1$
helpButton.addActionListener(new HelpListener());
comboPanel.add(helpButton);
this.getContentPane().add(comboPanel, BorderLayout.NORTH);
this.getContentPane().add(parameterPanel, BorderLayout.CENTER);
JPanel resultsPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
cutPasteFunction = new JLabeledTextField(JMeterUtils.getResString("cut_paste_function"), 35); //$NON-NLS-1$
resultsPanel.add(cutPasteFunction);
JButton generateButton = new JButton(JMeterUtils.getResString("generate")); //$NON-NLS-1$
generateButton.addActionListener(this);
resultsPanel.add(generateButton);
this.getContentPane().add(resultsPanel, BorderLayout.SOUTH);
this.pack();
ComponentUtil.centerComponentInWindow(this);
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:23,代码来源:FunctionHelper.java
示例9: makeParameterPanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
private JPanel makeParameterPanel() {
regexField = new JLabeledTextField(JMeterUtils.getResString("regex_field")); //$NON-NLS-1$
templateField = new JLabeledTextField(JMeterUtils.getResString("template_field")); //$NON-NLS-1$
defaultField = new JLabeledTextField(JMeterUtils.getResString("default_value_field")); //$NON-NLS-1$
refNameField = new JLabeledTextField(JMeterUtils.getResString("ref_name_field")); //$NON-NLS-1$
matchNumberField = new JLabeledTextField(JMeterUtils.getResString("match_num_field")); //$NON-NLS-1$
JPanel panel = new JPanel(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
initConstraints(gbc);
addField(panel, refNameField, gbc);
resetContraints(gbc);
addField(panel, regexField, gbc);
resetContraints(gbc);
addField(panel, templateField, gbc);
resetContraints(gbc);
addField(panel, matchNumberField, gbc);
resetContraints(gbc);
gbc.weighty = 1;
addField(panel, defaultField, gbc);
return panel;
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:23,代码来源:RegexExtractorGui.java
示例10: makeParameterPanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
private JPanel makeParameterPanel() {
expressionField = new JLabeledTextField(JMeterUtils.getResString("expression_field")); //$NON-NLS-1$
attributeField = new JLabeledTextField(JMeterUtils.getResString("attribute_field")); //$NON-NLS-1$
defaultField = new JLabeledTextField(JMeterUtils.getResString("default_value_field")); //$NON-NLS-1$
refNameField = new JLabeledTextField(JMeterUtils.getResString("ref_name_field")); //$NON-NLS-1$
matchNumberField = new JLabeledTextField(JMeterUtils.getResString("match_num_field")); //$NON-NLS-1$
JPanel panel = new JPanel(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
initConstraints(gbc);
addField(panel, refNameField, gbc);
resetContraints(gbc);
addField(panel, expressionField, gbc);
resetContraints(gbc);
addField(panel, attributeField, gbc);
resetContraints(gbc);
addField(panel, matchNumberField, gbc);
resetContraints(gbc);
gbc.weighty = 1;
addField(panel, defaultField, gbc);
return panel;
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:23,代码来源:HtmlExtractorGui.java
示例11: createRegexpTasksPanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
/**
* Create the Regexp task pane
*
* @return Regexp task pane
*/
private JPanel createRegexpTasksPanel() {
JPanel regexpActionPanel = new JPanel();
regexpActionPanel.setLayout(new BoxLayout(regexpActionPanel, BoxLayout.X_AXIS));
Border margin = new EmptyBorder(5, 5, 0, 5);
regexpActionPanel.setBorder(margin);
regexpField = new JLabeledTextField(JMeterUtils.getResString("regexp_tester_field")); // $NON-NLS-1$
regexpActionPanel.add(regexpField, BorderLayout.WEST);
JButton regexpTester = new JButton(JMeterUtils.getResString("regexp_tester_button_test")); // $NON-NLS-1$
regexpTester.setActionCommand(REGEXP_TESTER_COMMAND);
regexpTester.addActionListener(this);
regexpActionPanel.add(regexpTester, BorderLayout.EAST);
regexpResultField = new JTextArea();
regexpResultField.setEditable(false);
regexpResultField.setLineWrap(true);
regexpResultField.setWrapStyleWord(true);
JPanel regexpTasksPanel = new JPanel(new BorderLayout(0, 5));
regexpTasksPanel.add(regexpActionPanel, BorderLayout.NORTH);
regexpTasksPanel.add(GuiUtils.makeScrollPane(regexpResultField), BorderLayout.CENTER);
return regexpTasksPanel;
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:30,代码来源:RenderAsRegexp.java
示例12: init
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
private void init() {
setBorder(makeBorder());
setLayout(new VerticalLayout(5, VerticalLayout.BOTH));
startField = new JLabeledTextField(JMeterUtils.getResString("start"));//$NON-NLS-1$
incrField = new JLabeledTextField(JMeterUtils.getResString("increment"));//$NON-NLS-1$
endField = new JLabeledTextField(JMeterUtils.getResString("max"));//$NON-NLS-1$
varNameField = new JLabeledTextField(JMeterUtils.getResString("var_name"));//$NON-NLS-1$
formatField = new JLabeledTextField(JMeterUtils.getResString("format"));//$NON-NLS-1$
perUserField = new JCheckBox(JMeterUtils.getResString("counter_per_user"));//$NON-NLS-1$
resetCounterOnEachThreadGroupIteration = new JCheckBox(JMeterUtils.getResString("counter_reset_per_tg_iteration"));//$NON-NLS-1$
add(makeTitlePanel());
add(startField);
add(incrField);
add(endField);
add(formatField);
add(varNameField);
add(perUserField);
add(resetCounterOnEachThreadGroupIteration);
perUserField.addActionListener(this);
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:23,代码来源:CounterConfigGui.java
示例13: createEmbeddedRsrcPanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
protected JPanel createEmbeddedRsrcPanel() {
// retrieve Embedded resources
retrieveEmbeddedResources = new JCheckBox(JMeterUtils.getResString("web_testing_retrieve_images")); // $NON-NLS-1$
final JPanel embeddedRsrcPanel = new HorizontalPanel();
embeddedRsrcPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils
.getResString("web_testing_retrieve_title"))); // $NON-NLS-1$
embeddedRsrcPanel.add(retrieveEmbeddedResources);
// Embedded URL match regex
embeddedRE = new JLabeledTextField(JMeterUtils.getResString("web_testing_embedded_url_pattern"),20); // $NON-NLS-1$
embeddedRsrcPanel.add(embeddedRE);
return embeddedRsrcPanel;
}
开发者ID:Blazemeter,项目名称:jmeter-bzm-plugins,代码行数:16,代码来源:Http2DefaultsGui.java
示例14: MartiniPreProcessorGui
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
public MartiniPreProcessorGui() {
super(
"martini_pre_processor_label",
"Martini Scenario PreProcessor",
"Martini Scenario Configuration",
MartiniPreProcessor.class);
cyclicCheckbox = new JCheckBox("Cyclic Iteration");
shuffledCheckbox = new JCheckBox("Shuffled Iteration");
spelFilterField = new JLabeledTextField("SpEL Filter");
init();
}
开发者ID:qas-guru,项目名称:martini-jmeter-extension,代码行数:12,代码来源:MartiniPreProcessorGui.java
示例15: init
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的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
示例16: addField
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
private void addField(JPanel panel, JLabeledTextField field, GridBagConstraints gbc) {
List<JComponent> item = field.getComponentList();
panel.add(item.get(0), gbc.clone());
gbc.gridx++;
gbc.weightx = 1;
gbc.fill=GridBagConstraints.HORIZONTAL;
panel.add(item.get(1), gbc.clone());
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:9,代码来源:RegExUserParametersGui.java
示例17: createPortPanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
private JPanel createPortPanel() {
portField = new JTextField(ProxyControl.DEFAULT_PORT_S, 5);
portField.setName(PORTFIELD);
portField.addKeyListener(this);
JLabel label = new JLabel(JMeterUtils.getResString("port")); // $NON-NLS-1$
label.setLabelFor(portField);
JPanel gPane = new JPanel(new BorderLayout());
gPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
JMeterUtils.getResString("proxy_general_settings"))); // $NON-NLS-1$
HorizontalPanel panel = new HorizontalPanel();
panel.add(label);
panel.add(portField);
panel.add(Box.createHorizontalStrut(10));
gPane.add(panel, BorderLayout.WEST);
sslDomains = new JLabeledTextField(JMeterUtils.getResString("proxy_domains")); // $NON-NLS-1$
sslDomains.setEnabled(ProxyControl.isDynamicMode());
if (ProxyControl.isDynamicMode()) {
sslDomains.setToolTipText(JMeterUtils.getResString("proxy_domains_dynamic_mode_tooltip"));
} else {
sslDomains.setToolTipText(JMeterUtils.getResString("proxy_domains_dynamic_mode_tooltip_java6"));
}
gPane.add(sslDomains, BorderLayout.CENTER);
return gPane;
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:30,代码来源:ProxyControlGui.java
示例18: makeTimeoutPanel
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
/**
* @return JPanel timeout config
*/
private JPanel makeTimeoutPanel() {
JPanel panel = new JPanel();
panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
panel.setBorder(BorderFactory.createTitledBorder(
BorderFactory.createEtchedBorder(),
JMeterUtils.getResString("timeout_config_box_title"))); // $NON-NLS-1$
timeout = new JLabeledTextField(JMeterUtils.getResString("timeout_title")); // $NON-NLS-1$
timeout.setSize(timeout.getSize().height, 30);
panel.add(timeout);
return panel;
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:15,代码来源:SystemSamplerGui.java
示例19: init
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
/**
* Initialize the GUI.
*/
private void init() {
this.setLayout(new BorderLayout());
// MAIN PANEL
Border margin = new EmptyBorder(10, 10, 5, 10);
this.setBorder(margin);
// Add the main panel and the graph
this.add(this.makeTitlePanel(), BorderLayout.NORTH);
this.createTabs();
prefixField = new JLabeledTextField(JMeterUtils.getResString("monitor_label_prefix")); // $NON-NLS-1$
add(prefixField, BorderLayout.SOUTH);
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:17,代码来源:MonitorHealthVisualizer.java
示例20: init
import org.apache.jorphan.gui.JLabeledTextField; //导入依赖的package包/类
private void init() {
this.getContentPane().setLayout(new BorderLayout(10,10));
searchTF = new JLabeledTextField(JMeterUtils.getResString("search_text_field"), 20); //$NON-NLS-1$
if(!StringUtils.isEmpty(lastSearch)) {
searchTF.setText(lastSearch);
}
isRegexpCB = new JCheckBox(JMeterUtils.getResString("search_text_chkbox_regexp"), false); //$NON-NLS-1$
isCaseSensitiveCB = new JCheckBox(JMeterUtils.getResString("search_text_chkbox_case"), false); //$NON-NLS-1$
Font font = new Font("SansSerif", Font.PLAIN, 10); // reduce font
isRegexpCB.setFont(font);
isCaseSensitiveCB.setFont(font);
JPanel searchCriterionPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
searchCriterionPanel.add(isCaseSensitiveCB);
searchCriterionPanel.add(isRegexpCB);
JPanel searchPanel = new JPanel();
searchPanel.setLayout(new BoxLayout(searchPanel, BoxLayout.Y_AXIS));
searchPanel.setBorder(BorderFactory.createEmptyBorder(7, 3, 3, 3));
searchPanel.add(searchTF, BorderLayout.NORTH);
searchPanel.add(searchCriterionPanel, BorderLayout.CENTER);
JPanel buttonsPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
searchButton = new JButton(JMeterUtils.getResString("search")); //$NON-NLS-1$
searchButton.addActionListener(this);
searchAndExpandButton = new JButton(JMeterUtils.getResString("search_expand")); //$NON-NLS-1$
searchAndExpandButton.addActionListener(this);
cancelButton = new JButton(JMeterUtils.getResString("cancel")); //$NON-NLS-1$
cancelButton.addActionListener(this);
buttonsPanel.add(searchButton);
buttonsPanel.add(searchAndExpandButton);
buttonsPanel.add(cancelButton);
searchPanel.add(buttonsPanel, BorderLayout.SOUTH);
this.getContentPane().add(searchPanel);
searchTF.requestFocusInWindow();
this.pack();
ComponentUtil.centerComponentInWindow(this);
}
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:41,代码来源:SearchTreeDialog.java
注:本文中的org.apache.jorphan.gui.JLabeledTextField类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论