1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| void btnSignItActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_btnSignItActionPerformed
//ticket#3288393 (.pdf suffix)
//*************************************************
Signer sg = new Signer();
int atq=sg.auto;
if(atq==1){
String tmpOut = sg.FileOut.toString();
}
else{
String tmpOut = tfOutPdfFile.getText();
}
String tmpOut=null;
//*******************************************************************
if (StringUtils.isNotEmpty(tmpOut)) {
File tmpOutFile = new File(tmpOut);
if (!tmpOut.toLowerCase().endsWith(".pdf") && !tmpOutFile.isFile()) {
tfOutPdfFile.setText(tmpOut + ".pdf");
}
}
storeToOptions();
if (checkFileExists(tfInPdfFile, "gui.inPdfFile.label") && checkInOutDiffers() && checkCertEncryption()) {
infoTextArea.setText(null);
btnInfoClose.setEnabled(false);
infoDialog.setVisible(true);
setVisible(false);
infoDialog.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
LOGGER.info(RES.get("console.starting"));
// Let's do it
final Thread tmpST = new Thread(signerLogic);
tmpST.start();
}
} |