use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class ViewResultsFullVisualizer method createLeftPanel.
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);
// $NON-NLS-1$
autoScrollCB = new JCheckBox(JMeterUtils.getResString("view_results_autoscroll"));
autoScrollCB.setSelected(false);
autoScrollCB.addItemListener(this);
leftPane.add(autoScrollCB, BorderLayout.SOUTH);
return leftPane;
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class HttpTestSampleGui 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 LdapTestSamplerGui 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));
setBorder(makeBorder());
// MAIN PANEL
VerticalPanel mainPanel = new VerticalPanel();
loginPanel = new LoginConfigGui(false);
ldapDefaultPanel = new LdapConfigGui(false);
// $NON-NLS-1$
loginPanel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("login_config")));
add(makeTitlePanel(), BorderLayout.NORTH);
mainPanel.add(loginPanel);
mainPanel.add(ldapDefaultPanel);
add(mainPanel, BorderLayout.CENTER);
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class MailReaderSamplerGui method init.
/*
* Helper method to set up the GUI screen
*/
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
setLayout(new BorderLayout());
setBorder(makeBorder());
JPanel settingsPanel = new JPanel(new GridBagLayout());
GridBagConstraints gbc = getConstraints();
serverTypeBox = new JTextField(20);
serverTypeBox.addActionListener(this);
serverTypeBox.addFocusListener(this);
addField(settingsPanel, serverTypeLabel, serverTypeBox, gbc);
serverBox = new JTextField(20);
addField(settingsPanel, serverLabel, serverBox, gbc);
portBox = new JTextField(20);
addField(settingsPanel, portLabel, portBox, gbc);
usernameBox = new JTextField(20);
addField(settingsPanel, accountLabel, usernameBox, gbc);
passwordBox = new JPasswordField(20);
addField(settingsPanel, passwordLabel, passwordBox, gbc);
folderLabel = new JLabel(folderLabelStr);
folderBox = new JTextField(INBOX, 20);
addField(settingsPanel, folderLabel, folderBox, gbc);
HorizontalPanel numMessagesPanel = new HorizontalPanel();
numMessagesPanel.add(new JLabel(numMessagesLabel));
ButtonGroup nmbg = new ButtonGroup();
allMessagesButton = new JRadioButton(allMessagesLabel);
allMessagesButton.addChangeListener(e -> {
if (allMessagesButton.isSelected()) {
someMessagesField.setEnabled(false);
}
});
someMessagesButton = new JRadioButton();
someMessagesButton.addChangeListener(e -> {
if (someMessagesButton.isSelected()) {
someMessagesField.setEnabled(true);
}
});
nmbg.add(allMessagesButton);
nmbg.add(someMessagesButton);
someMessagesField = new JTextField(5);
allMessagesButton.setSelected(true);
numMessagesPanel.add(allMessagesButton);
numMessagesPanel.add(someMessagesButton);
numMessagesPanel.add(someMessagesField);
headerOnlyBox = new JCheckBox(headerOnlyLabel);
deleteBox = new JCheckBox(deleteLabel);
storeMimeMessageBox = new JCheckBox(storeMime);
securitySettingsPanel = new SecuritySettingsPanel();
JPanel settings = new VerticalPanel();
settings.add(Box.createVerticalStrut(5));
settings.add(settingsPanel);
settings.add(numMessagesPanel);
settings.add(headerOnlyBox);
settings.add(deleteBox);
settings.add(storeMimeMessageBox);
settings.add(securitySettingsPanel);
add(makeTitlePanel(), BorderLayout.NORTH);
add(settings, BorderLayout.CENTER);
}
use of org.apache.jmeter.gui.util.VerticalPanel in project jmeter by apache.
the class LdapExtConfigGui method init.
/***************************************************************************
* This will initialise all the panels in the LdapConfigGui
**************************************************************************/
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);
}
VerticalPanel mainPanel = new VerticalPanel();
mainPanel.add(createTestPanel());
mainPanel.add(testPanel());
add(mainPanel, BorderLayout.CENTER);
// Take note of when buttons are changed so we 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);
}
Aggregations