Once loaded you can change the view around by click-dragging the mouse. The jar file is 13.85MB so it may take awhile to load depending on your connection speed the first time. After the first time it should immediately load if the file is still in your browser's cache.
a. Procedure for converting a project
into an applet in NetBeans. Example here the glass bunny example in JOGLVertexProgRefractDemo
i.
Project
Setup
(1) Open GearsAppletDemo
(2) Open JOGLVertexProgRefractDemo
(3) Copy JOGLVertexProgRefractDemo,
give new copied project the name of JOGLVertexProgRefractDemoApplet
(4) Close JOGLVertexProgRefractDemo
project
(5) Copy demos.applets
source package which includes the JOGLGearsAppletDemo.java file from JOGLGearsAppletDemo to JOGLVertexProgRefractDemoApplet
(6) Close JOGLGearsAppletDemo
ii. Fix import line
(1) In JOGLGearsAppletDemo.java (which
can be renamed) change import demos.gears.Gears; line
to import demos.vertexProgRefract.*;
(2) Can now test by selecting
JOGLGearsAppletDemo.java file and chosing RunFile from the right-click context menu. Maybe clean and rebuild before.
iii. Create HTML file
(1) Create new html file or open one
you want to put this into and insert the following HTML:
<html><head><title>Gears</title></head><body>
<applet
code="org.jdesktop.applet.util.JNLPAppletLauncher"
width=600
height=400
archive="http://download.java.net/media/applet-launcher/applet-launcher.jar,
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
JOGLGearsAppletDemo.jar">
<param
name="codebase_lookup"
value="false">
<param
name="subapplet.classname" value="demos.applets.JOGLGearsAppletDemo">
<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="jnlpExtension1"
value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp">
</applet></body></html>
(2) In archive attribute replace JOGLGearsAppletDemo.jar
with new jar JOGLVertexProgRefractDemoApplet.jar
(3) Can also rename title, add text
and change size of the applet by adjusting the width and height attributes in
the applet tag (they can also be changed to a percentage). Also if you renamed the applet file then
change subapplet.classname to match. Subapplet.displayname
can also be updated.
(4) Save html file
(5) Copy JOGVertexProgRefractDemoApplet.jar
file from C:\Users\DmT\Documents\NetBeansProjects\JOGLVertexProgRefractDemoApplet\dist directory into
same directory as html file.
(6) Test by opening html file.
(7) In Update deployment.properties?
popup window choose No, unless you want another. You can prevent this window from popping up
by changing the <param name="noddraw.check" value="true"> line to
value=false.
iv. Upload to server.
(1) I tried uploading the jar file but
it turned out to be too large for goDaddys Hosting
Control Center. The jar file was 13.85MB
and the limit was 7.81MB.
(a) Under the Content tab there is a
different FTP applet and that worked.
(i) Note: To look at what is in a jar
file, change its end from
.jar to .zip and open with windows explorer.