use of org.apache.jorphan.gui.layout.VerticalLayout in project jmeter by apache.
the class IncludeControllerGui method init.
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
setBorder(makeBorder());
add(makeTitlePanel());
add(includePanel);
}
use of org.apache.jorphan.gui.layout.VerticalLayout in project jmeter by apache.
the class InterleaveControlGui method init.
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
setBorder(makeBorder());
add(makeTitlePanel());
// $NON-NLS-1$
style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers"));
add(CheckBoxPanel.wrap(style));
// $NON-NLS-1$
accrossThreads = new JCheckBox(JMeterUtils.getResString("interleave_accross_threads"));
add(CheckBoxPanel.wrap(accrossThreads));
}
use of org.apache.jorphan.gui.layout.VerticalLayout in project jmeter by apache.
the class RandomControlGui method init.
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP));
setBorder(makeBorder());
add(makeTitlePanel());
// $NON-NLS-1$
style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers"));
add(CheckBoxPanel.wrap(style));
}
use of org.apache.jorphan.gui.layout.VerticalLayout in project jmeter by apache.
the class SearchTreeDialog method init.
private void init() {
// WARNING: called from ctor so must not be overridden (i.e. must be private or final)
this.getContentPane().setLayout(new BorderLayout(10, 10));
//$NON-NLS-1$
searchTF = new JLabeledTextField(JMeterUtils.getResString("search_text_field"), 20);
if (!StringUtils.isEmpty(lastSearch)) {
searchTF.setText(lastSearch);
}
//$NON-NLS-1$
replaceTF = new JLabeledTextField(JMeterUtils.getResString("search_text_replace"), 20);
statusLabel = new JLabel(" ");
statusLabel.setPreferredSize(new Dimension(100, 20));
statusLabel.setMinimumSize(new Dimension(100, 20));
//$NON-NLS-1$
isRegexpCB = new JCheckBox(JMeterUtils.getResString("search_text_chkbox_regexp"), false);
//$NON-NLS-1$
isCaseSensitiveCB = new JCheckBox(JMeterUtils.getResString("search_text_chkbox_case"), true);
isRegexpCB.setFont(FONT_SMALL);
isCaseSensitiveCB.setFont(FONT_SMALL);
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);
searchPanel.add(replaceTF);
searchPanel.add(statusLabel);
JPanel buttonsPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
//$NON-NLS-1$
searchButton = new JButton(JMeterUtils.getResString("search"));
searchButton.addActionListener(this);
//$NON-NLS-1$
searchAndExpandButton = new JButton(JMeterUtils.getResString("search_expand"));
searchAndExpandButton.addActionListener(this);
//$NON-NLS-1$
replaceButton = new JButton(JMeterUtils.getResString("search_replace_all"));
replaceButton.addActionListener(this);
//$NON-NLS-1$
cancelButton = new JButton(JMeterUtils.getResString("cancel"));
cancelButton.addActionListener(this);
buttonsPanel.add(searchButton);
buttonsPanel.add(searchAndExpandButton);
buttonsPanel.add(replaceButton);
buttonsPanel.add(cancelButton);
JPanel searchAndReplacePanel = new JPanel();
searchAndReplacePanel.setLayout(new VerticalLayout());
searchAndReplacePanel.add(searchPanel);
searchAndReplacePanel.add(searchCriterionPanel);
searchAndReplacePanel.add(buttonsPanel);
this.getContentPane().add(searchAndReplacePanel);
searchTF.requestFocusInWindow();
this.pack();
ComponentUtil.centerComponentInWindow(this);
}
use of org.apache.jorphan.gui.layout.VerticalLayout in project jmeter by apache.
the class SMIMEAssertionGui method createSignerPanel.
private JPanel createSignerPanel() {
JPanel panel = new JPanel();
panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString(// $NON-NLS-1$
"smime_assertion_signer")));
panel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));
ButtonGroup buttonGroup = new ButtonGroup();
buttonGroup.add(signerNoCheck);
buttonGroup.add(signerCheckConstraints);
buttonGroup.add(signerCheckByFile);
panel.add(signerNoCheck);
panel.add(signerCheckConstraints);
signerCheckConstraints.addChangeListener(evt -> {
boolean signerCC = signerCheckConstraints.isSelected();
signerDnField.setEnabled(signerCC);
signerSerialNumberField.setEnabled(signerCC);
signerEmailField.setEnabled(signerCC);
issuerDnField.setEnabled(signerCC);
});
Box box = Box.createHorizontalBox();
// $NON-NLS-1$
box.add(new JLabel(JMeterUtils.getResString("smime_assertion_signer_dn")));
box.add(Box.createHorizontalStrut(5));
box.add(signerDnField);
panel.add(box);
box = Box.createHorizontalBox();
// $NON-NLS-1$
box.add(new JLabel(JMeterUtils.getResString("smime_assertion_signer_email")));
box.add(Box.createHorizontalStrut(5));
box.add(signerEmailField);
panel.add(box);
box = Box.createHorizontalBox();
// $NON-NLS-1$
box.add(new JLabel(JMeterUtils.getResString("smime_assertion_issuer_dn")));
box.add(Box.createHorizontalStrut(5));
box.add(issuerDnField);
panel.add(box);
box = Box.createHorizontalBox();
// $NON-NLS-1$
box.add(new JLabel(JMeterUtils.getResString("smime_assertion_signer_serial")));
box.add(Box.createHorizontalStrut(5));
box.add(signerSerialNumberField);
panel.add(box);
signerCheckByFile.addChangeListener(evt -> signerCertFile.setEnabled(signerCheckByFile.isSelected()));
box = Box.createHorizontalBox();
box.add(signerCheckByFile);
box.add(Box.createHorizontalStrut(5));
box.add(signerCertFile);
panel.add(box);
return panel;
}
Aggregations