1. The browser reserves space in the document for displaying the applet. The WIDTH and HEIGHT parameters of the <APPLET> tag determine the amount of space used by the applet.
2. The browser reads the parameters from the <PARAM> tags.
3. The VM starts and is asked to load and initialize the applet. The applet has access to the names and values in the <PARAM> tags.
4. The VM creates a running copy of the applet based on the class file.
5. The browser calls the applet's init method, so the applet will initialize itself.
6. The VM calls the start method of the applet when it is ready for the applet to start processing. It also calls paint to draw the applet in the browser window.
7. Whenever the applet need to be redrawn (for example, when the user scrolls the applet into view), the browser calls the applet's paint method.
8. The browser calls the stop method when the user moves onto another HTML document.
9. The broswer calls the destroy method when it clears the applet out of memory.
No comments:
Post a Comment