changeset in /hg/icedtea: 2008-03-06 Joshua Sumali <jsumali at re...

Joshua Sumali jsumali at redhat.com
Thu May 29 14:11:17 PDT 2008


changeset bd6babe8221f in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=bd6babe8221f
description:
	2008-03-06  Joshua Sumali  <jsumali at redhat.com>

	        * Makefile.am: Added new 'extra' targets. These new targets build the
	        sources in the extra/ directory to build about.jar, which is the new
	        sample jnlp application for javaws.
	        * Makefile.in: Regenerated.
	        * generated/sun/awt/X11/generator/sizer.32: Regenerated.
	        * rt/net/sourceforge/jnlp/resources/Manifest.mf: Fix boot class typo.
	        * rt/net/sourceforge/jnlp/resources/Messages.properties: Improved command
	        line options.
	        * rt/net/sourceforge/jnlp/runtime/Boot.java: Changed command line
	        behaviour. Sample application now only runs if the -about flag is passed.
	        * rt/net/sourceforge/jnlp/runtime/JNLPRuntime.java: Remove call to
	        printStackTrace.
	        * rt/net/sourceforge/jnlp/security/CertsInfoPane.java: Rearranged methods
	        and relaxed visibility in some fields/methods for SingleCertInfoPane
	        class.
	        * rt/net/sourceforge/jnlp/security/SecurityWarningDialog.java: Added
	        single certificate dialog showing.
	        * rt/net/sourceforge/jnlp/tools/KeyTool.java: Moved KeyStore retrieving to
	        new SecurityUtil class.
	        * extra/net/sourceforge/jnlp/about/HTMLPanel.java: New File.
	        * extra/net/sourceforge/jnlp/about/Main.java: Likewise.
	        * extra/net/sourceforge/jnlp/about/resources/about.html: Likewise.
	        * extra/net/sourceforge/jnlp/about/resources/applications.html: Likewise.
	        * extra/net/sourceforge/jnlp/about/resources/jamIcon.jpg: Likewise.
	        * extra/net/sourceforge/jnlp/about/resources/notes.html: Likewise.
	        * rt/net/sourceforge/jnlp/resources/about.jnlp: Likewise.
	        * rt/net/sourceforge/jnlp/security/SecurityUtil.java: Likewise.
	        * rt/net/sourceforge/jnlp/security/SingleCertInfoPane.java: Likewise.
	        * rt/net/sourceforge/jnlp/security/viewer/CertificatePane.java: Likewise.
	        * rt/net/sourceforge/jnlp/security/viewer/CertificateViewer.java:
	        Likewise.

diffstat:

20 files changed, 1532 insertions(+), 222 deletions(-)
ChangeLog                                                      |   34 
Makefile.am                                                    |   56 +
Makefile.in                                                    |   56 +
extra/net/sourceforge/jnlp/about/HTMLPanel.java                |   59 +
extra/net/sourceforge/jnlp/about/Main.java                     |  135 +++
extra/net/sourceforge/jnlp/about/resources/about.html          |   28 
extra/net/sourceforge/jnlp/about/resources/applications.html   |   36 +
extra/net/sourceforge/jnlp/about/resources/notes.html          |   82 ++
rt/net/sourceforge/jnlp/resources/Manifest.mf                  |    2 
rt/net/sourceforge/jnlp/resources/Messages.properties          |    6 
rt/net/sourceforge/jnlp/resources/about.jnlp                   |   20 
rt/net/sourceforge/jnlp/runtime/Boot.java                      |  120 ++-
rt/net/sourceforge/jnlp/runtime/JNLPRuntime.java               |    1 
rt/net/sourceforge/jnlp/security/CertsInfoPane.java            |  108 +--
rt/net/sourceforge/jnlp/security/SecurityUtil.java             |  200 +++++
rt/net/sourceforge/jnlp/security/SecurityWarningDialog.java    |   40 +
rt/net/sourceforge/jnlp/security/SingleCertInfoPane.java       |   77 ++
rt/net/sourceforge/jnlp/security/viewer/CertificatePane.java   |  358 ++++++++++
rt/net/sourceforge/jnlp/security/viewer/CertificateViewer.java |  148 ++++
rt/net/sourceforge/jnlp/tools/KeyTool.java                     |  188 +----

diffs (truncated from 2208 to 500 lines):

diff -r 4f409eb5ae45 -r bd6babe8221f ChangeLog
--- a/ChangeLog	Wed Mar 05 08:37:23 2008 -0500
+++ b/ChangeLog	Thu Mar 06 09:46:38 2008 -0500
@@ -1,3 +1,37 @@ 2008-03-05  Gary Benson  <gbenson at redhat
+2008-03-06  Joshua Sumali  <jsumali at redhat.com>
+
+	* Makefile.am: Added new 'extra' targets. These new targets build the
+	sources in the extra/ directory to build about.jar, which is the new
+	sample jnlp application for javaws. 
+	* Makefile.in: Regenerated.
+	* generated/sun/awt/X11/generator/sizer.32: Regenerated.
+	* rt/net/sourceforge/jnlp/resources/Manifest.mf: Fix boot class typo.
+	* rt/net/sourceforge/jnlp/resources/Messages.properties: Improved command
+	line options.
+	* rt/net/sourceforge/jnlp/runtime/Boot.java: Changed command line
+	behaviour. Sample application now only runs if the -about flag is passed.
+	* rt/net/sourceforge/jnlp/runtime/JNLPRuntime.java: Remove call to
+	printStackTrace.
+	* rt/net/sourceforge/jnlp/security/CertsInfoPane.java: Rearranged methods
+	and relaxed visibility in some fields/methods for SingleCertInfoPane
+	class.
+	* rt/net/sourceforge/jnlp/security/SecurityWarningDialog.java: Added
+	single certificate dialog showing.
+	* rt/net/sourceforge/jnlp/tools/KeyTool.java: Moved KeyStore retrieving to
+	new SecurityUtil class.
+	* extra/net/sourceforge/jnlp/about/HTMLPanel.java: New File.
+	* extra/net/sourceforge/jnlp/about/Main.java: Likewise.
+	* extra/net/sourceforge/jnlp/about/resources/about.html: Likewise.
+	* extra/net/sourceforge/jnlp/about/resources/applications.html: Likewise.
+	* extra/net/sourceforge/jnlp/about/resources/jamIcon.jpg: Likewise.
+	* extra/net/sourceforge/jnlp/about/resources/notes.html: Likewise.
+	* rt/net/sourceforge/jnlp/resources/about.jnlp: Likewise.
+	* rt/net/sourceforge/jnlp/security/SecurityUtil.java: Likewise.
+	* rt/net/sourceforge/jnlp/security/SingleCertInfoPane.java: Likewise.
+	* rt/net/sourceforge/jnlp/security/viewer/CertificatePane.java: Likewise.
+	* rt/net/sourceforge/jnlp/security/viewer/CertificateViewer.java:
+	Likewise.
+
 2008-03-05  Gary Benson  <gbenson at redhat.com>
 
 	* contrib/templater/README: Updated URL.
diff -r 4f409eb5ae45 -r bd6babe8221f Makefile.am
--- a/Makefile.am	Wed Mar 05 08:37:23 2008 -0500
+++ b/Makefile.am	Thu Mar 06 09:46:38 2008 -0500
@@ -16,9 +16,11 @@ distclean-local: clean-copy
 distclean-local: clean-copy
 	rm -rf stamps
 	rm -f rt-source-files.txt \
-	  hotspot-tools-source-files.txt
+	  hotspot-tools-source-files.txt \
+	  extra-source-files.txt
 	rm -rf bootstrap
 	rm -rf lib
+	rm -rf extra-lib
 	rm -rf openjdk-ecj
 	rm -rf openjdk
 	rm -rf hotspot-tools
@@ -34,7 +36,7 @@ install:
 	clean-icedtea icedtea-against-icedtea clean-icedtea-ecj clean-plugs \
 	clean-tools-jar clean-shared-objects \
 	clean-copy clean-hotspot-tools clean-rt clean-gcjwebplugin \
-	hotspot hotspot-helper
+	hotspot hotspot-helper clean-extra
 
 EXTRA_DIST = rt generated $(ICEDTEA_PATCHES) $(ICEDTEA_ECJ_PATCH) \
 	gcjwebplugin.cc patches/icedtea-speed.patch tools-copy contrib ports \
@@ -479,7 +481,8 @@ endif
 # you change it in the icedtea-debug target as well.
 icedtea: stamps/bootstrap-directory-symlink.stamp \
 	stamps/hotspot-tools.stamp stamps/plugs.stamp \
-	stamps/ports.stamp stamps/patch.stamp gcjwebplugin.so
+	stamps/ports.stamp stamps/patch.stamp gcjwebplugin.so \
+	extra-lib/about.jar
 	$(MAKE) \
 	  $(ICEDTEA_ENV) \
 	  -C openjdk/control/make/
@@ -490,15 +493,18 @@ icedtea: stamps/bootstrap-directory-syml
 	  cp -pPRf gcjwebplugin.so \
 	    $(BUILD_OUTPUT_DIR)/j2re-image/lib/$(INSTALL_ARCH_DIR) ; \
 	fi
-	cp rt/net/sourceforge/jnlp/resources/default.jnlp \
+	cp rt/net/sourceforge/jnlp/resources/about.jnlp \
+	  extra-lib/about.jar \
 	  $(BUILD_OUTPUT_DIR)/j2re-image/lib
-	cp rt/net/sourceforge/jnlp/resources/default.jnlp \
+	cp rt/net/sourceforge/jnlp/resources/about.jnlp \
+	  extra-lib/about.jar \
 	  $(BUILD_OUTPUT_DIR)/j2sdk-image/jre/lib
 	@echo "IcedTea is served:" $(BUILD_OUTPUT_DIR)
 
 icedtea-debug: stamps/bootstrap-directory-symlink.stamp \
 	stamps/hotspot-tools.stamp stamps/plugs.stamp \
-	stamps/ports.stamp stamps/patch.stamp gcjwebplugin.so
+	stamps/ports.stamp stamps/patch.stamp gcjwebplugin.so \
+	extra-lib/about.jar
 	$(MAKE) \
 	  $(ICEDTEA_ENV) \
 	  -C openjdk/control/make \
@@ -511,8 +517,10 @@ icedtea-debug: stamps/bootstrap-director
 	    $(BUILD_OUTPUT_DIR)-debug/j2re-image/lib/$(INSTALL_ARCH_DIR) ; \
 	fi
 	cp rt/net/sourceforge/jnlp/resources/default.jnlp \
+	  extra-lib/about.jar \
 	  $(BUILD_OUTPUT_DIR)-debug/j2re-image/lib
 	cp rt/net/sourceforge/jnlp/resources/default.jnlp \
+	  extra-lib/about.jar \
 	  $(BUILD_OUTPUT_DIR)-debug/j2sdk-image/jre/lib
 	@echo "IcedTea (debug build) is served:" \
 	  $(BUILD_OUTPUT_DIR)-debug
@@ -770,6 +778,42 @@ bootstrap/jdk1.7.0/jre/lib/rt-closed.jar
 	  cp bootstrap/jdk1.7.0/jre/lib/rt-closed.jar bootstrap/ecj/jre/lib/rt.jar; \
 	fi
 
+# extras -- used to create about.jar for javaws.
+extra-source-files.txt:
+	find extra -name '*.java' | sort > $@
+
+stamps/extra-class-files.stamp: extra-source-files.txt \
+	bootstrap/jdk1.7.0/jre/lib/rt-closed.jar
+	mkdir -p extra-lib
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+	  then \
+	  $(JAVAC) $(MEMORY_LIMIT) -g -d extra-lib -bootclasspath '' -source 1.6 \
+	    -sourcepath extra -cp bootstrap/jdk1.7.0/jre/lib/rt-closed.jar \
+		@extra-source-files.txt ; \
+	else \
+	  $(ICEDTEA_BOOT_DIR)/bin/javac $(MEMORY_LIMIT) -g -d extra-lib \
+	    -bootclasspath '' -source 1.6 \
+	    -sourcepath extra -cp bootstrap/jdk1.7.0/jre/lib/rt-closed.jar \
+		@extra-source-files.txt ; \
+	fi
+	cp -r extra/net/sourceforge/jnlp/about/resources \
+	  extra-lib/net/sourceforge/jnlp/about
+	mkdir -p stamps
+	touch $@
+
+clean-extra:
+	rm -rf extra-lib
+	rm -f stamps/extra-class-files.stamp
+	rm -f extra-source-files.txt
+
+extra-lib/about.jar: stamps/extra-class-files.stamp
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+	  then \
+	  $(JAR) cf $@ -C extra-lib net ; \
+	else \
+	  $(ICEDTEA_BOOT_DIR)/bin/jar cf $@ -C extra-lib net ; \
+	fi
+
 # gcjwebplugin.so.
 gcjwebplugin.so: gcjwebplugin.cc
 	if test "$(ENABLE_PLUGIN)" == "yes" ; \
diff -r 4f409eb5ae45 -r bd6babe8221f Makefile.in
--- a/Makefile.in	Wed Mar 05 08:37:23 2008 -0500
+++ b/Makefile.in	Thu Mar 06 09:46:38 2008 -0500
@@ -700,9 +700,11 @@ distclean-local: clean-copy
 distclean-local: clean-copy
 	rm -rf stamps
 	rm -f rt-source-files.txt \
-	  hotspot-tools-source-files.txt
+	  hotspot-tools-source-files.txt \
+	  extra-source-files.txt
 	rm -rf bootstrap
 	rm -rf lib
+	rm -rf extra-lib
 	rm -rf openjdk-ecj
 	rm -rf openjdk
 	rm -rf hotspot-tools
@@ -718,7 +720,7 @@ install:
 	clean-icedtea icedtea-against-icedtea clean-icedtea-ecj clean-plugs \
 	clean-tools-jar clean-shared-objects \
 	clean-copy clean-hotspot-tools clean-rt clean-gcjwebplugin \
-	hotspot hotspot-helper
+	hotspot hotspot-helper clean-extra
 
 env:
 	@echo 'unset JAVA_HOME'
@@ -967,7 +969,8 @@ clean-bootstrap-directory-symlink-ecj:
 # you change it in the icedtea-debug target as well.
 icedtea: stamps/bootstrap-directory-symlink.stamp \
 	stamps/hotspot-tools.stamp stamps/plugs.stamp \
-	stamps/ports.stamp stamps/patch.stamp gcjwebplugin.so
+	stamps/ports.stamp stamps/patch.stamp gcjwebplugin.so \
+	extra-lib/about.jar
 	$(MAKE) \
 	  $(ICEDTEA_ENV) \
 	  -C openjdk/control/make/
@@ -978,15 +981,18 @@ icedtea: stamps/bootstrap-directory-syml
 	  cp -pPRf gcjwebplugin.so \
 	    $(BUILD_OUTPUT_DIR)/j2re-image/lib/$(INSTALL_ARCH_DIR) ; \
 	fi
-	cp rt/net/sourceforge/jnlp/resources/default.jnlp \
+	cp rt/net/sourceforge/jnlp/resources/about.jnlp \
+	  extra-lib/about.jar \
 	  $(BUILD_OUTPUT_DIR)/j2re-image/lib
-	cp rt/net/sourceforge/jnlp/resources/default.jnlp \
+	cp rt/net/sourceforge/jnlp/resources/about.jnlp \
+	  extra-lib/about.jar \
 	  $(BUILD_OUTPUT_DIR)/j2sdk-image/jre/lib
 	@echo "IcedTea is served:" $(BUILD_OUTPUT_DIR)
 
 icedtea-debug: stamps/bootstrap-directory-symlink.stamp \
 	stamps/hotspot-tools.stamp stamps/plugs.stamp \
-	stamps/ports.stamp stamps/patch.stamp gcjwebplugin.so
+	stamps/ports.stamp stamps/patch.stamp gcjwebplugin.so \
+	extra-lib/about.jar
 	$(MAKE) \
 	  $(ICEDTEA_ENV) \
 	  -C openjdk/control/make \
@@ -999,8 +1005,10 @@ icedtea-debug: stamps/bootstrap-director
 	    $(BUILD_OUTPUT_DIR)-debug/j2re-image/lib/$(INSTALL_ARCH_DIR) ; \
 	fi
 	cp rt/net/sourceforge/jnlp/resources/default.jnlp \
+	  extra-lib/about.jar \
 	  $(BUILD_OUTPUT_DIR)-debug/j2re-image/lib
 	cp rt/net/sourceforge/jnlp/resources/default.jnlp \
+	  extra-lib/about.jar \
 	  $(BUILD_OUTPUT_DIR)-debug/j2sdk-image/jre/lib
 	@echo "IcedTea (debug build) is served:" \
 	  $(BUILD_OUTPUT_DIR)-debug
@@ -1228,6 +1236,42 @@ bootstrap/jdk1.7.0/jre/lib/rt-closed.jar
 	  cp bootstrap/jdk1.7.0/jre/lib/rt-closed.jar bootstrap/ecj/jre/lib/rt.jar; \
 	fi
 
+# extras -- used to create about.jar for javaws.
+extra-source-files.txt:
+	find extra -name '*.java' | sort > $@
+
+stamps/extra-class-files.stamp: extra-source-files.txt \
+	bootstrap/jdk1.7.0/jre/lib/rt-closed.jar
+	mkdir -p extra-lib
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+	  then \
+	  $(JAVAC) $(MEMORY_LIMIT) -g -d extra-lib -bootclasspath '' -source 1.6 \
+	    -sourcepath extra -cp bootstrap/jdk1.7.0/jre/lib/rt-closed.jar \
+		@extra-source-files.txt ; \
+	else \
+	  $(ICEDTEA_BOOT_DIR)/bin/javac $(MEMORY_LIMIT) -g -d extra-lib \
+	    -bootclasspath '' -source 1.6 \
+	    -sourcepath extra -cp bootstrap/jdk1.7.0/jre/lib/rt-closed.jar \
+		@extra-source-files.txt ; \
+	fi
+	cp -r extra/net/sourceforge/jnlp/about/resources \
+	  extra-lib/net/sourceforge/jnlp/about
+	mkdir -p stamps
+	touch $@
+
+clean-extra:
+	rm -rf extra-lib
+	rm -f stamps/extra-class-files.stamp
+	rm -f extra-source-files.txt
+
+extra-lib/about.jar: stamps/extra-class-files.stamp
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+	  then \
+	  $(JAR) cf $@ -C extra-lib net ; \
+	else \
+	  $(ICEDTEA_BOOT_DIR)/bin/jar cf $@ -C extra-lib net ; \
+	fi
+
 # gcjwebplugin.so.
 gcjwebplugin.so: gcjwebplugin.cc
 	if test "$(ENABLE_PLUGIN)" == "yes" ; \
diff -r 4f409eb5ae45 -r bd6babe8221f extra/net/sourceforge/jnlp/about/HTMLPanel.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extra/net/sourceforge/jnlp/about/HTMLPanel.java	Thu Mar 06 09:46:38 2008 -0500
@@ -0,0 +1,59 @@
+/* HTMLPanel.java
+   Copyright (C) 2008 Red Hat, Inc.
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License as published by
+the Free Software Foundation, version 2.
+
+IcedTea is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING.  If not, write to
+the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version.
+*/
+
+package net.sourceforge.jnlp.about;
+
+import java.awt.BorderLayout;
+import java.io.IOException;
+import java.net.URL;
+
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JEditorPane;
+
+public class HTMLPanel extends JPanel {
+
+	JEditorPane pane;
+	
+	public HTMLPanel(URL url) throws IOException {
+		super(new BorderLayout());
+		pane = new JEditorPane(url);
+		pane.setEditable(false);
+		JScrollPane scroller = new JScrollPane(pane);
+		add(scroller, BorderLayout.CENTER);
+	}
+}
diff -r 4f409eb5ae45 -r bd6babe8221f extra/net/sourceforge/jnlp/about/Main.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extra/net/sourceforge/jnlp/about/Main.java	Thu Mar 06 09:46:38 2008 -0500
@@ -0,0 +1,135 @@
+/* Main.java
+   Copyright (C) 2008 Red Hat, Inc.
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License as published by
+the Free Software Foundation, version 2.
+
+IcedTea is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING.  If not, write to
+the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version.
+*/
+
+package net.sourceforge.jnlp.about;
+
+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 {
+
+	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";
+	JTabbedPane tabbedPane;
+
+	public Main() throws IOException {
+		super(new BorderLayout());
+		
+		HTMLPanel notesPanel = new HTMLPanel(getClass().getResource(notes));
+		HTMLPanel appsPanel = new HTMLPanel(getClass().getResource(apps));
+		HTMLPanel aboutPanel = new HTMLPanel(getClass().getResource(about));
+		
+		appsPanel.pane.addHyperlinkListener(this);
+		
+		tabbedPane = new JTabbedPane();
+
+		tabbedPane.add("About NetX", aboutPanel);
+		tabbedPane.add("Applications", appsPanel);
+		tabbedPane.add("Notes", notesPanel);
+		
+		tabbedPane.setPreferredSize(new Dimension(550,410));
+		add(tabbedPane, BorderLayout.CENTER);
+	}
+
+	private static void createAndShowGUI() {
+		JNLPRuntime.setExitClass(Main.class);
+		
+		try {
+			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+		} catch (Exception e) {	
+		}
+		
+		JFrame frame = new JFrame("About NetX");
+		frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+		Main demo = null;
+		try {
+			demo = new Main();
+		} catch (Exception e) {
+			e.printStackTrace();
+			System.exit(1);
+		}
+		demo.setOpaque(true);
+		frame.setContentPane(demo);
+		frame.pack();
+		centerDialog(frame);
+		frame.setVisible(true);
+	}
+	
+    private static void centerDialog(JFrame frame) {
+        Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
+        Dimension dialogSize = frame.getSize();
+
+        frame.setLocation((screen.width - dialogSize.width)/2,
+            (screen.height - dialogSize.height)/2);
+    }
+
+	public static void main(String[] args) {
+		javax.swing.SwingUtilities.invokeLater(new Runnable() {
+			public void run() {
+				createAndShowGUI();
+			}
+		});
+	}
+
+	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();
+			}
+		}
+	}
+}
diff -r 4f409eb5ae45 -r bd6babe8221f extra/net/sourceforge/jnlp/about/resources/about.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extra/net/sourceforge/jnlp/about/resources/about.html	Thu Mar 06 09:46:38 2008 -0500
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+    <head>
+        <title>
+        </title>
+    </head>
+    <body>
+        <b>NetX</b> is a high-quality JNLP client that executes
+        network-based applications.  
+        <br>NetX downloads code over the
+        network, caches it, and runs it in a secure sandbox
+        environment (unless signed).
+        <br><br><big><b>
+                Features of NetX:
+        </b></big>
+        <ul>
+            <li><b>Modular: </b>Easily add JNLP capabilities to an application.</li>
+            <li><b>Small Size: </b>Loads from a ~130K JAR file.</li>
+            <li><b>Saves Memory: </b>Launch programs in a shared JVM.</li>
+            <li><b>Fast startup:</b> Runs applications from a cache for fast starting. </li>
+            <li><b>Security:</b> Run any application in a sandbox or log its activities.</li>
+            <li><b>Auto-Update:</b> Applications can auto-update without special code.</li>
+            <li><b>Network Deployment:</b> Deploy to the internet, not with installers. </li>
+            <li><b>Open Source:</b> GNU Lesser General Public License.</li>
+        </ul>
+    </body>
+</html>
+
diff -r 4f409eb5ae45 -r bd6babe8221f extra/net/sourceforge/jnlp/about/resources/applications.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extra/net/sourceforge/jnlp/about/resources/applications.html	Thu Mar 06 09:46:38 2008 -0500



More information about the distro-pkg-dev mailing list