Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  OpenGL project in applet, Help~  (Read 1123 times)
0 Members and 2 Guests are viewing this topic.
Offline agniluthfi

JGO n00b
*

Posts: 4



« on: 2010-07-07 21:09:30 »

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
Offline gouessej

JGO Kernel
*****

Posts: 3560
Medals: 30


TUER


« Reply #1 on: 2010-07-08 09:58:14 »

Where is main.common.GLDisplay?

Julien Gouesse
Offline agniluthfi

JGO n00b
*

Posts: 4



« Reply #2 on: 2010-07-08 11:03:04 »

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
Games published by our own members! Go get 'em!
Offline agniluthfi

JGO n00b
*

Posts: 4



« Reply #3 on: 2010-07-10 19:36:44 »

please help me to solve this problem.
Offline DavidX

JGO n00b
*

Posts: 17



« Reply #4 on: 2010-07-16 02:50:25 »

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 <applet> tag or <object> tag. The <applet> tag has been deprecated by W3C and now W3C recommends you use the <object> tag. A quick google search should reveal some more information on this.

HTH,

 - David
Offline agniluthfi

JGO n00b
*

Posts: 4



« Reply #5 on: 2010-07-16 22:28:33 »

thanks i have solved this problem
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.084 seconds with 20 queries.