commit 7e186ef75cd4c546c4993be59e1fdec1fc5c9237
parent 695db478368d08c6f768110e7b9bbbe06d1fb2a9
Author: Michael Neuper <michael@michaelneuper.com>
Date: Thu, 11 May 2023 21:05:06 +0200
Change URL exception
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/view/MenuUI.java b/src/view/MenuUI.java
@@ -2,7 +2,9 @@ package view;
import com.formdev.flatlaf.FlatDarkLaf;
import java.awt.Desktop;
+import java.io.IOException;
import java.net.URI;
+import java.net.URISyntaxException;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
@@ -121,7 +123,7 @@ public class MenuUI extends javax.swing.JFrame {
// open the URL in the default browser
desktop.browse(new URI("https://github.com/michaelneuper/librejack"));
- } catch (Exception e) {
+ } catch (IOException | URISyntaxException e) {
System.err.println(e);
}
}//GEN-LAST:event_jButtonSourceActionPerformed