diff options
author | Sven Gothel <[email protected]> | 2009-07-03 19:15:43 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-07-03 19:15:43 +0000 |
commit | 02dc33b6f1457c2c943ad3e228c9096f43a6fdd6 (patch) | |
tree | 2b943a58e4dca97e133ac30b3d1bbf9ca32eec4d /www/applettest-jnlp.html | |
parent | 9114cbf6c4c35f7952b9e32f89e5a8147bec446c (diff) |
Fix JNLP applet
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@363 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'www/applettest-jnlp.html')
-rw-r--r-- | www/applettest-jnlp.html | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/www/applettest-jnlp.html b/www/applettest-jnlp.html index e18774c..8584a16 100644 --- a/www/applettest-jnlp.html +++ b/www/applettest-jnlp.html @@ -18,6 +18,7 @@ otherwise it shall fallback to <a href="http://applet-launcher.dev.java.net">JNL width=600 height=400 archive="http://download.java.net/media/applet-launcher/applet-launcher.jar, + http://download.java.net/media/jogl/jsr-231-2.x-webstart/nativewindow.all.jar, http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl.all.jar, http://download.java.net/media/gluegen/webstart-2.x/gluegen-rt.jar, http://download.java.net/media/jogl/jsr-231-2.x-demos-webstart/jogl-demos.jar"> @@ -26,8 +27,10 @@ otherwise it shall fallback to <a href="http://applet-launcher.dev.java.net">JNL <param name="subapplet.displayname" value="JOGL Gears Applet"> <param name="noddraw.check" value="true"> <param name="progressbar" value="true"> - <param name="jnlpNumExtensions" value="1"> + <param name="jnlpNumExtensions" value="2"> <param name="jnlpExtension1" + value="http://download.java.net/media/jogl/jsr-231-2.x-webstart/nativewindow.jnlp"> + <param name="jnlpExtension2" value="http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl-core.jnlp"> <param name="jnlp_href" value="applet-gears.jnlp"> </applet> @@ -42,6 +45,7 @@ The applet above is instantiated with the following code: width=600 height=400 archive="http://download.java.net/media/applet-launcher/applet-launcher.jar, + http://download.java.net/media/jogl/jsr-231-2.x-webstart/nativewindow.all.jar, http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl.all.jar, http://download.java.net/media/gluegen/webstart-2.x/gluegen-rt.jar, http://download.java.net/media/jogl/jsr-231-2.x-demos-webstart/jogl-demos.jar"> @@ -50,13 +54,46 @@ The applet above is instantiated with the following code: <param name="subapplet.displayname" value="JOGL Gears Applet"> <param name="noddraw.check" value="true"> <param name="progressbar" value="true"> - <param name="jnlpNumExtensions" value="1"> + <param name="jnlpNumExtensions" value="2"> <param name="jnlpExtension1" + value="http://download.java.net/media/jogl/jsr-231-2.x-webstart/nativewindow.jnlp"> + <param name="jnlpExtension2" value="http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl-core.jnlp"> <param name="jnlp_href" value="applet-gears.jnlp"> </applet> </pre> +Where the referenced JNLP file <em>applet-gears.jnlp</em> looks as follow: + +<pre> +<?xml version="1.0" encoding="utf-8"?> +<jnlp href="applet-gears.jnlp"> + <information> + <title>JOGL JNLP Applet Gears Demo</title> + <vendor>Sun Microsystems, Inc.</vendor> + <homepage href="http://jogl-demos.dev.java.net/"/> + <description>Gears Demo</description> + <description kind="short">Brian Paul's Gears demo ported to Java and JOGL.</description> + <offline-allowed/> + </information> + + <resources> + <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/> + <property name="sun.java2d.noddraw" value="true"/> + <jar href="http://download.java.net/media/jogl/jsr-231-2.x-demos-webstart/jogl-demos.jar" main="true"/> + <jar href="http://download.java.net/media/jogl/jsr-231-2.x-demos-webstart/jogl-demos-util.jar"/> + <extension name="jogl-all-awt" href="http://download.java.net/media/jogl/jsr-231-2.x-webstart/jogl-all-awt.jnlp" /> + </resources> + + <applet-desc + name="Gears-Applet" + main-class="demos.applets.GearsApplet" + width="640" + height="480"> + </applet-desc> +</jnlp> +</pre> + </P> <P> |