Posted: Thu Feb 17, 2005 11:46 am Post subject: (No subject)
All swing components are rendered in an Event Thread. And the thing is your trying to access data being modifed by two threads (Game and SWING).. you need to synchronize "an" object before accessing the static variables of the Game class, in both classes and also when calling methods of the opposite class.