Class edu.cornell.lassp.mck10.FastApplet.AppletPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cornell.lassp.mck10.FastApplet.AppletPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----edu.cornell.lassp.mck10.FastApplet.AppletPanel

public class AppletPanel
extends Panel
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.

Version:
1.0
Author:
Matt Kuntz (e-mail: mck10@cornell.edu)

Constructor Index

 o AppletPanel()

Method Index

 o setup(Applet, Label)
setup(applet,label) is called by the FastApplet to do any initialization required by applet that is being loaded.

Constructors

 o AppletPanel
  public AppletPanel()

Methods

 o setup
  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.
Parameters:
applet - A reference to the applet.
label - A reference to the label displayed at the bottom of the splash screen.

All Packages  Class Hierarchy  This Package  Previous  Next  Index