From 11e0226011c3b317d64939e167774521e22bf894 Mon Sep 17 00:00:00 2001 From: Andreas Abraham Date: Fri, 25 May 2018 13:42:37 +0200 Subject: update pdf-as library to version 4.1.3 --- pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java | 11 ++++++----- .../java/at/asit/pdfover/gui/composites/SignaturePanel.java | 4 ++++ 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'pdf-over-gui/src/main/java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java index 4e6df19a..39769fcf 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java @@ -70,11 +70,12 @@ public class Main { } catch (Throwable e) { - log.error("Error wrong Java Architecture, please re-install pdf-over "); //$NON-NLS-1$ - log.error(e.getMessage()); - JOptionPane.showMessageDialog(null, - "Invalid Java Architecture! Please re-install the latest version of PDF-Over", //$NON-NLS-1$ - null, JOptionPane.ERROR_MESSAGE); + log.error("Error occured " + e.getMessage()); //$NON-NLS-1$ + log.error(e.toString()); + + /*JOptionPane.showMessageDialog(null, + "Error occured " + e.getMessage(), //$NON-NLS-1$ + null, JOptionPane.ERROR_MESSAGE);*/ } // Workaround for remaining AWT-Shutdown thread on OSX diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java index 34c1112f..193f5974 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java @@ -426,8 +426,12 @@ public class SignaturePanel extends JPanel { /** Handles a mouseMoved event */ @Override public void mouseMoved(MouseEvent evt) { +// try { boolean onSig = isOnSignature(evt.getX(), evt.getY()); setCursor(onSig ? Cursors.HAND : Cursors.DEFAULT); +// }catch (NullPointerException e) { +// log.debug("Error " +e.getMessage()); //$NON-NLS-1$ +// } } /** Handles a mousePressed event */ -- cgit v1.2.3