Thread Animation

Hello,

I am probably not going to describe this problem very will but here goes.

I want to have two (or more) threads, of the same class but with different parameters, that animates a square (or other shapes) going across the screen and paint in the same JPanel. I have managed to do it with one thread but I was unsure how to go about sharing the one JPanel with the two (or more) threads (in my case moving boxes).

Any help on this one will be very gratefully received,

Harold Clements

[518 byte] By [haroldclementsa] at [2007-10-2 7:52:12]
# 1
http://www.javaworld.com/javaworld/jw-03-1996/jw-03-animation.html
Here_Is_Johnnya at 2007-7-16 21:40:30 > top of Java-index,Java Essentials,Java Programming...
# 2
My [url http://forum.java.sun.com/thread.jspa?forumID=31&threadID=628750]Timer Animation[/url] example does this.
camickra at 2007-7-16 21:40:30 > top of Java-index,Java Essentials,Java Programming...