Search in sources :

Example 21 with JCheckBox

use of javax.swing.JCheckBox in project zaproxy by zaproxy.

the class OptionsCheckForUpdatesPanel method getChkInstallScannerRules.

private JCheckBox getChkInstallScannerRules() {
    if (chkInstallScannerRules == null) {
        chkInstallScannerRules = new JCheckBox();
        chkInstallScannerRules.setText(Constant.messages.getString("cfu.options.installScannerRules"));
        chkInstallScannerRules.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        chkInstallScannerRules.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
    }
    return chkInstallScannerRules;
}
Also used : JCheckBox(javax.swing.JCheckBox)

Example 22 with JCheckBox

use of javax.swing.JCheckBox in project zaproxy by zaproxy.

the class OptionsCheckForUpdatesPanel method getChkReportReleaseAddons.

private JCheckBox getChkReportReleaseAddons() {
    if (chkReportReleaseAddons == null) {
        chkReportReleaseAddons = new JCheckBox();
        chkReportReleaseAddons.setText(Constant.messages.getString("cfu.options.reportReleaseAddons"));
        chkReportReleaseAddons.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        chkReportReleaseAddons.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
        chkReportReleaseAddons.addItemListener(new ItemListener() {

            @Override
            public void itemStateChanged(ItemEvent e) {
                setCheckBoxStates();
            }
        });
    }
    return chkReportReleaseAddons;
}
Also used : JCheckBox(javax.swing.JCheckBox) ItemEvent(java.awt.event.ItemEvent) ItemListener(java.awt.event.ItemListener)

Example 23 with JCheckBox

use of javax.swing.JCheckBox in project zaproxy by zaproxy.

the class OptionsCheckForUpdatesPanel method getChkReportAlphaAddons.

private JCheckBox getChkReportAlphaAddons() {
    if (chkReportAlphaAddons == null) {
        chkReportAlphaAddons = new JCheckBox();
        chkReportAlphaAddons.setText(Constant.messages.getString("cfu.options.reportAlphaAddons"));
        chkReportAlphaAddons.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        chkReportAlphaAddons.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
    }
    return chkReportAlphaAddons;
}
Also used : JCheckBox(javax.swing.JCheckBox)

Example 24 with JCheckBox

use of javax.swing.JCheckBox in project zaproxy by zaproxy.

the class BreakPanelToolbarFactory method askForDropConfirmation.

private int askForDropConfirmation() {
    String title = Constant.messages.getString("brk.dialogue.confirmDropMessage.title");
    String message = Constant.messages.getString("brk.dialogue.confirmDropMessage.message");
    JCheckBox checkBox = new JCheckBox(Constant.messages.getString("brk.dialogue.confirmDropMessage.option.dontAskAgain"));
    String confirmButtonLabel = Constant.messages.getString("brk.dialogue.confirmDropMessage.button.confirm.label");
    String cancelButtonLabel = Constant.messages.getString("brk.dialogue.confirmDropMessage.button.cancel.label");
    int option = JOptionPane.showOptionDialog(View.getSingleton().getMainFrame(), new Object[] { message, " ", checkBox }, title, JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, new String[] { confirmButtonLabel, cancelButtonLabel }, null);
    if (checkBox.isSelected()) {
        breakpointsParams.setConfirmDropMessage(false);
    }
    return option;
}
Also used : JCheckBox(javax.swing.JCheckBox)

Example 25 with JCheckBox

use of javax.swing.JCheckBox in project zaproxy by zaproxy.

the class OptionsScannerPanel method getChkHandleAntiCSRFTokens.

private JCheckBox getChkHandleAntiCSRFTokens() {
    if (chkHandleAntiCrsfTokens == null) {
        chkHandleAntiCrsfTokens = new JCheckBox();
        chkHandleAntiCrsfTokens.setText(Constant.messages.getString("ascan.options.anticsrf.label"));
    }
    return chkHandleAntiCrsfTokens;
}
Also used : JCheckBox(javax.swing.JCheckBox)

Aggregations

JCheckBox (javax.swing.JCheckBox)372 JPanel (javax.swing.JPanel)146 JLabel (javax.swing.JLabel)112 JButton (javax.swing.JButton)92 ActionEvent (java.awt.event.ActionEvent)71 ActionListener (java.awt.event.ActionListener)66 JTextField (javax.swing.JTextField)57 BorderLayout (java.awt.BorderLayout)52 GridBagConstraints (java.awt.GridBagConstraints)42 BoxLayout (javax.swing.BoxLayout)42 GridBagLayout (java.awt.GridBagLayout)39 Dimension (java.awt.Dimension)33 FlowLayout (java.awt.FlowLayout)31 Insets (java.awt.Insets)31 JScrollPane (javax.swing.JScrollPane)30 JRadioButton (javax.swing.JRadioButton)29 ItemEvent (java.awt.event.ItemEvent)26 ButtonGroup (javax.swing.ButtonGroup)25 ItemListener (java.awt.event.ItemListener)23 JComboBox (javax.swing.JComboBox)23