summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main')
-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 */