aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/about/HTMLPanel.java
diff options
context:
space:
mode:
Diffstat (limited to 'netx/net/sourceforge/jnlp/about/HTMLPanel.java')
-rw-r--r--netx/net/sourceforge/jnlp/about/HTMLPanel.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/about/HTMLPanel.java b/netx/net/sourceforge/jnlp/about/HTMLPanel.java
index 67c1733..c68321a 100644
--- a/netx/net/sourceforge/jnlp/about/HTMLPanel.java
+++ b/netx/net/sourceforge/jnlp/about/HTMLPanel.java
@@ -56,7 +56,13 @@ public class HTMLPanel extends JPanel {
public HTMLPanel(URL url, String identifier) throws IOException {
super(new BorderLayout());
id = identifier;
- JEditorPane pane = new JEditorPane(url);
+ JEditorPane pane = new JEditorPane();
+ try{
+ pane = new JEditorPane(url);
+ } catch(Exception ex){
+ //no need to have invalid url fatal
+ ex.printStackTrace();
+ }
pane.setContentType("text/html");
pane.setEditable(false);
pane.addHyperlinkListener(new UrlHyperlinkListener());