getNumberOfContainedApplets method



Returns the number of applets included in the current AppletContainer.

Syntax

numOfApplets = AppletContainer.getNumberOfContainedApplets()

Applies to

AppletContainer object.

Return value

integer. The number of applets contained in the AppletContainer.

Usage

An AppletContainer can accommodate up to four applets. Contained applets are identified by number (starting with 0) through the AppletContainer applet_n PARAM tag, so if you have included applet_0, applet_1, and applet_2 as AppletContainer PARAM tags and call getNumberOfContainedApplets, the return value will be 3.

Example
Replacing an applet example

See also
getContainedApplet method