Cakey's first applet!?

http://caseykneale.000space.com/

This thread was originally about how to make an applet but I figure I’d save forum-space and just post it here because it’s related.

I’m not expecting it to work for everyone but I just wanna know who it works for right now :).

So far it’s been tested on Vista and Fire-fox on 3 different machines with equal success, so I’m just praying it’s supported.
And vista + safari works as well.

http://timelessname.com/jogl/lesson01/
Now I just need to find out how to “package” all my code and my media.
Do I just put it into a zip, then rename it as .jar???

There is a checkbox in the NetBeans project properties category (“Webstart”) which prepares the project for webstart and/or applet deployment on next build.

It generates a html test page, jnlp and the jar and puts everything into the dist folder, it even packs with pack200 and signs your stuff if you want. If you have the OpenGL Pack project plugin installed the jogl jnlp dependency will be automatically inserted otherwise just do it manually.

That would manage the part from the deployment point of view. To write an applet just extend JApplet and think as it would be a JFrame :wink:

If you like to use a different ide just create the project and switch back to emacs :wink: all project files are IDE independent.

(I think the GL Pack should have at least one JOGL applet sample app)

good luck!

I wonder if eclipse has anything like that…
edit -
it does kinda
http://www.fsl.cs.sunysb.edu/~dquigley/cse219/index.php?it=eclipse&tt=jar&pf=y

Alright so I got everything in a Jar.
But


<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,
               http://www.angelfire.com/psy/reformation/NousApp.jar">
   <param name="codebase_lookup" value="false">
   <param name="subapplet.classname" value="NousApplet">
   <param name="subapplet.displayname" value="Nous Test - Casey Kneale">
   <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>

Now it just says it’s starting but it doesn’t start?

I just downloaded someone elses applet code, then I put it into a jar. and theirs works but mine doe not?

Could it be because I use the graphics class in it,and I don’t have a graphics class .jar included?

the problem was that I had a Window calling class and a Applet calling class. it’s all solved now though yay!

http://caseykneale.000space.com/

On my Mac is just says Loading and never loads. I’ve got Java 5.

:frowning: same thing with internet explorer on my vista :frowning: I wonder why. Thanks for trying.