Search code examples
javaappletjappletjavapos

Applet lifecycle when out of focus


Does a Java Applet always execute its code even when it losts focus? I've to put this applet in a web page. I'm tryng to understand this cause i've to develop an applet that listen to some hardware components through JavaPos. I have a callback method defined inside the applet and i'm not sure if it works even when users click on other page component. Thanks


Solution

  • Does a Java Applet always execute its code even when it losts focus?

    Yes, unless of course the applet code intentionally stops execution on loss of focus.