diff options
author | Jiri Vanek <[email protected]> | 2011-03-16 12:01:58 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2011-03-16 12:01:58 +0100 |
commit | b57ac4af342f216974001abcbf8e132f3c7d0327 (patch) | |
tree | 251f3e1f8cd509113325570ea9126b8adb399138 /extra/net/sourceforge | |
parent | ae8c6cb090bfda5381adc85052210b0a6fd4ed91 (diff) |
net.sourceforge.javaws.Main.java updated to find resources in javaws directory and removed code from net.sourceforge.jnlp and hyperlinklistener (useless without permissiopns), about.jnlp all-permitions removed,
Diffstat (limited to 'extra/net/sourceforge')
-rw-r--r-- | extra/net/sourceforge/javaws/about/Main.java | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/extra/net/sourceforge/javaws/about/Main.java b/extra/net/sourceforge/javaws/about/Main.java index e0cc589..2bce026 100644 --- a/extra/net/sourceforge/javaws/about/Main.java +++ b/extra/net/sourceforge/javaws/about/Main.java @@ -41,23 +41,18 @@ import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Toolkit; import java.io.IOException; -import java.net.URL; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTabbedPane; import javax.swing.UIManager; -import javax.swing.event.HyperlinkEvent; -import javax.swing.event.HyperlinkListener; -import net.sourceforge.jnlp.Launcher; -import net.sourceforge.jnlp.runtime.JNLPRuntime; -public class Main extends JPanel implements HyperlinkListener { +public class Main extends JPanel { - private final String notes = "/net/sourceforge/jnlp/about/resources/notes.html"; - private final String apps = "/net/sourceforge/jnlp/about/resources/applications.html"; - private final String about = "/net/sourceforge/jnlp/about/resources/about.html"; + private final String notes = "/net/sourceforge/javaws/about/resources/notes.html"; + private final String apps = "/net/sourceforge/javaws/about/resources/applications.html"; + private final String about = "/net/sourceforge/javaws/about/resources/about.html"; JTabbedPane tabbedPane; public Main() throws IOException { @@ -67,7 +62,7 @@ public class Main extends JPanel implements HyperlinkListener { HTMLPanel appsPanel = new HTMLPanel(getClass().getResource(apps)); HTMLPanel aboutPanel = new HTMLPanel(getClass().getResource(about)); - appsPanel.pane.addHyperlinkListener(this); + tabbedPane = new JTabbedPane(); @@ -80,7 +75,6 @@ public class Main extends JPanel implements HyperlinkListener { } private static void createAndShowGUI() { - JNLPRuntime.setExitClass(Main.class); try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); @@ -119,17 +113,5 @@ public class Main extends JPanel implements HyperlinkListener { }); } - public void hyperlinkUpdate(HyperlinkEvent e) { - if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { - URL url = e.getURL(); - Launcher launcher = new Launcher( - JNLPRuntime.getDefaultLaunchHandler()); - try { - launcher.launchBackground(url); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - } } |