|
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.
|