From 02dc33b6f1457c2c943ad3e228c9096f43a6fdd6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 3 Jul 2009 19:15:43 +0000 Subject: 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 --- www/applettest-jnlp.html | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) (limited to 'www/applettest-jnlp.html') 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 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 JNL - + + @@ -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> +Where the referenced JNLP file applet-gears.jnlp looks as follow: + +
+<?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>
+
+

-- cgit v1.2.3