Results 1 to 2 of 2
  1. #1
    gtopcu is offline Member
    Join Date
    Aug 2011
    Posts
    5
    Rep Power
    0

    Default JApplet stop() not called as per tutorial

    Hi All,

    My JApplet's stop() method is not called from IE, Chrome or Safari when I switch tabs, but is called along with the destroy() method when I close the tab that includes the applet.

    Could you please let me know why this behavior occurs? In the tutorials, it is mentioned that stop() will be called to release resources when the user is not viewing the applet (hence when he/she switches tabs) and I need it for the applet.

    Any links or workarounds are very welcome. Thank you.

    Kind Regards,
    S. Gokhan Topcu

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,321
    Rep Power
    25

    Default Re: JApplet stop() not called as per tutorial

    It is up to the browser to call the applet methods. I don't know if you can change the browser's behavior.
    Maybe some browers have settings for that but I have never seen it.

Similar Threads

  1. New to java stop need help stop
    By Skrap09 in forum New To Java
    Replies: 3
    Last Post: 09-17-2011, 12:45 PM
  2. Use stop button to stop moving (stop timers) on JPanel
    By mneskovic in forum New To Java
    Replies: 3
    Last Post: 07-23-2010, 12:50 PM
  3. update() gets never called
    By flok in forum AWT / Swing
    Replies: 8
    Last Post: 10-19-2009, 04:45 PM
  4. My constructor not called
    By rdtindsm in forum New To Java
    Replies: 2
    Last Post: 09-20-2009, 01:38 AM
  5. JFrame to JApplet or JApplet to JApplet
    By ramesh.8189 in forum AWT / Swing
    Replies: 13
    Last Post: 02-08-2009, 06:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •