HotJava handles the <app> tag in a similar way as <img>, i.e. it inlines the content at the tag insertion point. Since Applet's content is Java code, this code is being downloaded and executed by the Java interpreter at the client side.
|
Usually, applets contain some graphics and simulations which are being drawn/rendered/played on the HTML page containing the <app> tag.
|
Base Applet methods are as follows:
-
init() -- called by HotJava after downloading the applet source.
-
start() -- called whenever the user (re)enters applet's page
-
paint() -- called on each exposure of the applet graphics area
-
start() -- called whenever the user quits applet's page
|
For a minimal visual applet, one needs to specify init() and paint() methods. The full content and functionality of the Applet class is listed online.
|