-package com.nexuiz.demorecorder.ui.swinggui.utils;\r
-\r
-import java.awt.Component;\r
-import java.lang.Thread.UncaughtExceptionHandler;\r
-\r
-import org.jdesktop.swingx.JXErrorPane;\r
-import org.jdesktop.swingx.error.ErrorInfo;\r
-\r
-public class ShowErrorDialogExceptionHandler implements UncaughtExceptionHandler {\r
-\r
- private static Component parentWindow = null;\r
- \r
- public void uncaughtException(Thread t, Throwable e) {\r
- ErrorInfo info = new ErrorInfo("Error occurred", e.getMessage(), null, null, e, null, null);\r
- JXErrorPane.showDialog(parentWindow, info);\r
- }\r
-\r
- public static void setParentWindow(Component c) {\r
- parentWindow = c;\r
- }\r
-}\r
+package com.nexuiz.demorecorder.ui.swinggui.utils;
+
+import java.awt.Component;
+import java.lang.Thread.UncaughtExceptionHandler;
+
+import org.jdesktop.swingx.JXErrorPane;
+import org.jdesktop.swingx.error.ErrorInfo;
+
+public class ShowErrorDialogExceptionHandler implements UncaughtExceptionHandler {
+
+ private static Component parentWindow = null;
+
+ public void uncaughtException(Thread t, Throwable e) {
+ ErrorInfo info = new ErrorInfo("Error occurred", e.getMessage(), null, null, e, null, null);
+ JXErrorPane.showDialog(parentWindow, info);
+ }
+
+ public static void setParentWindow(Component c) {
+ parentWindow = c;
+ }
+}