This has to be a very basic question, but since I've never studied GUI in java, I don't know how it works. I have an Applet, ParticleApplet, that I have copied from Concurrent Programming, by Doug Lea. How can I make a "main" for this and run it as a standalone?
[ February 13, 2003: Message edited by: Garrett Smith ]
Oh wait, a few more I think: under: ParticleFrame pf = new ParticleFrame(); add pf.show(); You may have to set size and some other stuff at this point as well (you could also set size in the Constructor where you add canvas). You may have to add: pf.repaint(); in the for loop if the particles don't get drawn Steve
Joined: Jun 27, 2002
Okay, I got it to work, sort of. I have some other problems with it, but that may be from copying the example wrong. Anyway, my code so far for this class is:
I'll probably post on the threads forum for the other stuff. This seems to be "the book" for learning threads. Anyway, thanks for the help.