same applet but different instances?

What I try to do must be simple but somehow i can't get it to work.

I have an applet which controls the synchronization between a local file (temp file) and a file which resides on the server. It's programmed (not by me) to serve one file only (so 1 file at a time). All of this works fine!

Now when I have two (or more) windows open with the same applet, only one is still active (the last one opened). So it will only sync the last one. I can see clearly that uses the latest set of variables and even the scroll pane of the last applet is being used.

Can you even run two instances of one applet independently from each other?

Is there a way to solve this?

[692 byte] By [cursiefa] at [2007-11-26 14:33:11]
# 1

> Can you even run two instances of one applet

> independently from each other?

First of all, they do run independently.

I think you may solve this by having your applet start a thread to perform the syncing. this thread would not stop when the applet came inactive.

Ted.

Message was edited by:

ted_trippin - for some reason sync ' i n g wasn't allowed!!!

ted_trippina at 2007-7-8 2:28:53 > top of Java-index,Java Essentials,New To Java...