summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authorAndreas Abraham <aabraham@iaik.tugraz.at>2018-05-25 13:42:37 +0200
committerAndreas Abraham <aabraham@iaik.tugraz.at>2018-05-25 13:42:37 +0200
commit11e0226011c3b317d64939e167774521e22bf894 (patch)
tree1b0a912ee39c6f3d8338ae1ddabb4b875faee865 /pdf-over-gui/src/main/java/at/asit
parentd9ae896ade66d7daaef16b8da0b87173c873d6cf (diff)
downloadpdf-over-11e0226011c3b317d64939e167774521e22bf894.tar.gz
pdf-over-11e0226011c3b317d64939e167774521e22bf894.tar.bz2
pdf-over-11e0226011c3b317d64939e167774521e22bf894.zip
update pdf-as library to version 4.1.3
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java11
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java4
2 files changed, 10 insertions, 5 deletions
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 */