J'ai trouvé la méthode qui correspond à ceci :
INFO Lancement de PDF Signer
Et voici la méthode :
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
| /**
* Handles pressing of "Sign It" button. Creates and runs SignerLogic
* instance in a new thread.
*
* @param evt
* event
*/
private void btnSignItActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_btnSignItActionPerformed
//ticket#3288393 (.pdf suffix)
String tmpOut = tfOutPdfFile.getText();
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();
}
}// GEN-LAST:event_btnSignItActionPerformed |
Je pensais appeler cette méthode juste avant de lancer ma signature auto dans le main()
Partager