What is the correct way to handle closing a Java applet?

We have a java applet that runs outside the browser window. I always assumed that by clicking X to close the window (or by right-clicking on the taskbar and selecting close), all you had to do to close the applet.

However, it turns out that when we close in this way, our applet resets Safari every time (both on Mac and Windows).

Is there something I have to do in the code when the applet closes? The first culprit that comes to mind in the code is the class / library that performs the socket connection for Jabber / XMPP.

+3
source share
1 answer

destroy() , , (, ..). , , ( , Firefox) , , . . - , - .

+1

Source: https://habr.com/ru/post/1751444/


All Articles