Applet : Applet « Development « Java Tutorial

Without setting the security properly, an Applet

  1. Cannot have any access to files on the local computer.
  2. Cannot invoke any other program on the local computer.
  3. Cannot communicate with any computer other than the computer where it is from.

The following methods control the applet lifecycle.

void init()initialization. This method is called once when the applet starts execution.
void start()starts the applet and is called immediately after init(). Also called if the user returns to the current .html page after leaving it.
void stop()called when the user moves off the page containing the applet.
void destroy()called after the stop() method when the browser is shut down.

6.28.2.A real applet
6.28.3.Add JButton to JApplet
6.28.4.Access applet parameters
6.28.5.An Swing-based applet skeleton
6.28.6.Swing Applet
6.28.7.A simple Swing-based applet
6.28.8.Mini Appletviewer
6.28.9.Tic Tac Toe game
6.28.10.WeatherWizard JApplet
6.28.11.Change an applet background color
6.28.12.Read an applet parameters
6.28.13.Calling methods of an Applet from JavaScript code
6.28.14.Passing Parameters to Java Applet
6.28.15.Display message in browser status bar
6.28.16.System properties accessible to applets