OpenGL project in applet, Help~

i have a project to make NaCl lattice using jogl. it can work properly when i use main class but it can’t run if i make it in an applet. please help me to solve this problem.

you can download my source code here agniluthfi.com/main.zip

Where is main.common.GLDisplay?

oh i’m sorry i forgot about that. i have changed the url of course with main.common.GLDisplay.
you can download agniluthfi.com/main.zip

please help me

please help me to solve this problem.

  1. To use JOGL in an applet, you have to sign it (due to the function System.loadLibrary and the native calls JOGL makes.) You can sign a JAR file here: http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/security/toolfilex/step3.html

  2. The class GLDisplay (or whatever class you want to show as the applet) should extend java.awt.Applet or javax.swing.JApplet (for swing).

  3. To display it as an applet, you need to create a xHTML/HTML file with the tag or tag. The tag has been deprecated by W3C and now W3C recommends you use the tag. A quick google search should reveal some more information on this.

HTH,

  • David

thanks i have solved this problem