Package net.sf.jsignpdf.utils

Examples of net.sf.jsignpdf.utils.ResourceProvider


*/
public class Signer {

  private static void printHelp() {
    final HelpFormatter formatter = new HelpFormatter();
    final ResourceProvider res = ResourceProvider.getInstance();
    formatter.printHelp(80, "java -jar JSignPdf.jar [file1.pdf [file2.pdf ...]]", res.get("hlp.header"),
        SignerOptionsFromCmdLine.OPTS, res.get("hlp.footer"), true);
  }
View Full Code Here


   * Shows question dialog "File exists. Overwrite?"
   * @param file file
   * @return
   */
  private boolean confirmOverwrite(File file) {
    final ResourceProvider res = ResourceProvider.getInstance();
    final String tmpMessage = res.get(
      "filechooser.overwrite.question",
      new String[] {file.getAbsolutePath()});
    return JOptionPane.YES_OPTION == JOptionPane.showOptionDialog(this,
      tmpMessage,
      res.get("filechooser.save.warning"),
      JOptionPane.YES_NO_OPTION,
      JOptionPane.WARNING_MESSAGE,
      null,
      null,
      null);
View Full Code Here

TOP

Related Classes of net.sf.jsignpdf.utils.ResourceProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.