HELP! * GREY=local LOCAL HTML version of Foils prepared January 8,96

Foil 43 Applet Programming (Contd.)

From Overview of Java SC95 Tutorial on Web Technologies -- December 4,95. by NPAC Team * See also color IMAGE

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.



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Feb 18 1997