All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----edu.cornell.lassp.mck10.FastApplet.AppletPanel
AppletPanel is an abstract class which is used to create
fast loading classes. To create a fast loading applet, implement the
applet as a subclass of AppletPanel, instead of as a subclass of Applet.
Instead of being set up in an init method, the fast loading
applet must override the abstract setup method of
AppletPanel to perform it's initialization. Then, instead
of loading the applet directly, load the FastApplet class
with the "AppletClass" < PARAM > tag set to the name of the new
subclass of AppletPanel. The FastApplet class
is very small, and will quickly download and immediately display a
customizable splash screen. It will then wait while the real applet's
classes are loaded. When class loading is complete, the splash screen
will be replaced with the subclass of AppletPanel.
Source Code is available.
setup(applet,label) is called by the FastApplet
to do any initialization required by applet that is being loaded.
public AppletPanel()
public abstract void setup(Applet applet,
Label label)
setup(applet,label) is called by the FastApplet
to do any initialization required by applet that is being loaded.
A reference to the applet is passed so that the fast loading applet
will have access to < PARAM > tags, and any other features of an
applet that might be needed. The Label that is passed is
a reference to the label displayed at the bottom of the splash screen.
This way, if the applet has a lengthy initialization procedure, it can
provide the user with information about what it is doing, instead of
leaving the "loading classes . . . . ." message displayed.
All Packages Class Hierarchy This Package Previous Next Index