Search in sources :

Example 1 with VerticalLayout

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);
}
Also used : VerticalLayout(org.apache.jorphan.gui.layout.VerticalLayout)

Example 2 with VerticalLayout

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));
}
Also used : JCheckBox(javax.swing.JCheckBox) VerticalLayout(org.apache.jorphan.gui.layout.VerticalLayout)

Example 3 with VerticalLayout

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));
}
Also used : JCheckBox(javax.swing.JCheckBox) VerticalLayout(org.apache.jorphan.gui.layout.VerticalLayout)

Example 4 with VerticalLayout

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);
}
Also used : JCheckBox(javax.swing.JCheckBox) JLabeledTextField(org.apache.jorphan.gui.JLabeledTextField) JPanel(javax.swing.JPanel) FlowLayout(java.awt.FlowLayout) BorderLayout(java.awt.BorderLayout) BoxLayout(javax.swing.BoxLayout) JButton(javax.swing.JButton) JLabel(javax.swing.JLabel) VerticalLayout(org.apache.jorphan.gui.layout.VerticalLayout) Dimension(java.awt.Dimension)

Example 5 with VerticalLayout

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;
}
Also used : JPanel(javax.swing.JPanel) ButtonGroup(javax.swing.ButtonGroup) VerticalLayout(org.apache.jorphan.gui.layout.VerticalLayout) JLabel(javax.swing.JLabel) Box(javax.swing.Box) JCheckBox(javax.swing.JCheckBox)

Aggregations

VerticalLayout (org.apache.jorphan.gui.layout.VerticalLayout)21 JCheckBox (javax.swing.JCheckBox)12 JLabel (javax.swing.JLabel)11 JPanel (javax.swing.JPanel)11 JTextField (javax.swing.JTextField)8 BorderLayout (java.awt.BorderLayout)6 FlowLayout (java.awt.FlowLayout)4 Box (javax.swing.Box)4 Dimension (java.awt.Dimension)3 BoxLayout (javax.swing.BoxLayout)2 ButtonGroup (javax.swing.ButtonGroup)2 DefaultComboBoxModel (javax.swing.DefaultComboBoxModel)2 JButton (javax.swing.JButton)2 HorizontalPanel (org.apache.jmeter.gui.util.HorizontalPanel)2 PowerTableModel (org.apache.jmeter.gui.util.PowerTableModel)2 JLabeledTextField (org.apache.jorphan.gui.JLabeledTextField)2 Color (java.awt.Color)1 Format (java.text.Format)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Comparator (java.util.Comparator)1