aspose file tools*
The moose likes Applets and the fly likes Applet Completion Detection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet Completion Detection" Watch "Applet Completion Detection" New topic
Author

Applet Completion Detection

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 805
What is the "best"/easiest/most reliable way to detect an applet has finished loading (in all, if possible, browsers)? I want to have my surrounding html code (text, images, etc..,) not show up until the applet has fully loaded / displayed. Thanks.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Logically, it would be when the init method completes execution.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 805
I'm not looking to find out where in the applet code itself it has finishes loading. I'm looking to find out when the applet has finishing loading from the html side hence how do I (i) check using some property of the applet that it has finished or (ii) is there a way to communicate back to the html page maybe through a javascript call from the applet.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
Check out LiveConnect (and also the Common DOM API): https://www.coderanch.com/how-to/java/AppletsFaq#liveconnect


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet Completion Detection
 
Similar Threads
Applet introspection
Game Idea
Clock
getImage() method?
Clock