File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet Completion Detection

 
Rob Hunter
Ranch Hand
Posts: 832
  • 0
  • 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
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • 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
  • 0
  • 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
Pie
Posts: 42966
73
  • 0
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic