View Single Post
  #2 (permalink)  
Old 09-24-2008, 04:33 PM
Norm's Avatar
Norm Norm is offline
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
Have you tried debugging your code? Add println() statements to trace logic flow and variable values.

For wait and notify to communicate, they must be issued against the same object. You have notify using the mythread object and wait using "this" in GifAnimator. Two different objects.
Do a search for some simple examples of wait and notify usage.
Reply With Quote