How to kill Java-Applet beeing in a loop when browser is closed?
问题 I have a Java Applet to show images. I have a while true loop in paint() in order to permantly receive new images via tcp/ip socket. Now I have the problem, that the app is still requesting new Images from the server, even when the tab is closed. How can I fix that? 回答1: Just to make it clear: I have a while(true) loop in paint() in order to permanently receive new images via tcp/ip socket. Don't do this . The paint method should never block for a longer time frame. It should only paint your