use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class JMSPublisherGui method init.
/**
* init() adds jndiICF to the mainPanel. The class reuses logic from
* SOAPSampler, since it is common.
*/
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
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(createPriorityAndExpiration());
mainPanel.add(jmsErrorReconnectOnCodes);
mainPanel.add(iterations);
//$NON-NLS-1$
jmsPropertiesPanel = new JMSPropertiesPanel();
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);
fileEncoding = new // $NON-NLS-1$
JLabeledChoice(// $NON-NLS-1$
JMeterUtils.getResString("content_encoding") + " ", PublisherSampler.getSupportedEncodings(), true, false);
fileEncoding.setLayout(new BoxLayout(fileEncoding, BoxLayout.X_AXIS));
fileEncoding.add(Box.createHorizontalGlue());
mainPanel.add(fileEncoding);
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(JTextScrollPane.getInstance(textMessage), BorderLayout.CENTER);
mainPanel.add(messageContentPanel);
useProperties.addChangeListener(this);
useAuth.addChangeListener(this);
configChoice.addChangeListener(this);
msgChoice.addChangeListener(this);
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class LdapConfigGui method createSearchPanel.
/**
* This will create the Search panel in the LdapConfigGui.
*/
private JPanel createSearchPanel() {
VerticalPanel searchPanel = new VerticalPanel();
searchPanel.add(createLabelPanel("search_base", searchbase));
searchPanel.add(createLabelPanel("search_filter", searchfilter));
return searchPanel;
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class HttpDefaultsGui method createOptionalTasksPanel.
protected JPanel createOptionalTasksPanel() {
// OPTIONAL TASKS
final JPanel checkBoxPanel = new VerticalPanel();
checkBoxPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString(// $NON-NLS-1$
"optional_tasks")));
// Use MD5
// $NON-NLS-1$
useMD5 = new JCheckBox(JMeterUtils.getResString("response_save_as_md5"));
checkBoxPanel.add(useMD5);
return checkBoxPanel;
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class JUnitTestSamplerGui method createClassPanel.
private JPanel createClassPanel() {
JLabel label = //$NON-NLS-1$
new JLabel(JMeterUtils.getResString("protocol_java_classname"));
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(junit4);
junit4.addItemListener(this);
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;
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class FtpConfigGui method init.
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
setLayout(new BorderLayout(0, 5));
if (displayName) {
setBorder(makeBorder());
add(makeTitlePanel(), BorderLayout.NORTH);
}
// MAIN PANEL
VerticalPanel mainPanel = new VerticalPanel();
JPanel serverPanel = new HorizontalPanel();
serverPanel.add(createServerPanel(), BorderLayout.CENTER);
serverPanel.add(getPortPanel(), BorderLayout.EAST);
mainPanel.add(serverPanel);
mainPanel.add(createRemoteFilenamePanel());
mainPanel.add(createLocalFilenamePanel());
mainPanel.add(createLocalFileContentsPanel());
mainPanel.add(createOptionsPanel());
add(mainPanel, BorderLayout.CENTER);
}
Aggregations