• Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet Completion Detection

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Logically, it would be when the init method completes execution.
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out LiveConnect (and also the Common DOM API): https://www.coderanch.com/how-to/java/AppletsFaq#liveconnect
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!