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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations