Changing code to run as an applet?

Started by NeuroFuzzy, October 04, 2010, 04:50:55

Previous topic - Next topic

NeuroFuzzy

I've had a fair bit of experience programming with java to make command line applications - So I've only programmed a couple things having anything specific to drawing or applets (so I don't really know what I'm doing :P)

Because I really don't want to reinvent the wheel, I'm trying to pick off as much base code as possible from people. While searching around, I found this awesome class: http://potatoland.org/code/gl/source/glapp/GLApp.java
It seems amazingly useful. I got linked to that source code from this website: http://potatoland.org/code/gl/

I have the first application running (the one that draws a triangle to the screen). Now I want to try to get it working as an applet.

but... I'm not really sure what to do :S

The pprimary class (with the main() method) already extends GLApp, So it can't really extend Applet... and in my ininite(simal) knowledge, I have know idea what to do.

kappa

Quote from: NeuroFuzzy on October 04, 2010, 04:50:55
I have the first application running (the one that draws a triangle to the screen). Now I want to try to get it working as an applet.

but... I'm not really sure what to do :S

see the lwjgl wiki for tutorials on creating a basic lwjgl applet and how to use the lwjgl appletloader.