Hello, I made an applet which basically works in conjunction with another third party applet. When my applet loads it starts a Thread which sleeps every second and acts as a listener to the third party applet. The problem is that sometimes my applet loads before the other applet can even begin loading which sends an error when it trys to communicate with it. I have gotten around the problem by having my "listener" thread sleep for a few seconds upon loading, but i feel like this isnt the best solution. Is there a way to check to see if an applet/document exists? i've tried:
But it doesn't work. It compiles fine, but i get an error everytime my applet loads before the other one can. Any suggestions? Thanks.