What is the role of the AppletStub in executing an applet in a browser?

John Zukowski

The browser vendor provides an implementation of the AppletStub interface so applets can read parameters, load support files, and determine if they are active, among other tasks. These capabilities are abstracted out into the interface implementation and the browser installs the stub when the applet starts up. Thus, as an applet writer you don't have to configure your applet on how to do any of these tasks and the browser vendor doesn't have to provide its own custom Applet class providing its own custom implementations for developers to subclass for that specific browser.