destroy() and init() in Applet
Let's see if I can be succinct...
I have an applet that has a network connection with a server on another computer. The network is a simple one, using a client class with a socket connecting on port 14000 and a server class listening on the same port.
The problem is that I not only have one applet, but several, and I would like for them all to be able to use the same client class. Only when the browser is closed should the class be destroyed. So, I have overwridden destroy in applet and included a disconnect method. My thinking was that I could then safely browse back and forth to different Web pages with different applets, letting each applet in turn retrieve the singleton of the client class.
However, I have discovered that destroy() in fact is called every time one changes from one Web page to another. Incidentally, the same is true for init(). Yet, this seems to be in direct conflict with what the API says. I am using Internet Explorer 5.00, by the way.
Does anyone understand this? Can I stop destroy() from being called every time I change which page I am viewing?

