I've been tasked with animating this stick figure using a yoyo. I have been able to do that with the above code, but my problem is that the yoyos need to be going up and down at different rates. I know I need to add another thread but what is confounding me is that since I cannot write two paint methods in one applet, how will I distinguish which yoyo and string is going at which rate? How can I split up the paint method so that one part goes in one thread and another part is going in another thread and each thread's yoyos are going at different rates? Or am I totally going off the deep end???
Any help or suggestions would be appreciated, as I'm thoroughly confused.
Also, why is it that Runnable has to be implemented in order to use the run method? Why can't we just create our own run method and forget Runnable?