All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----edu.cornell.lassp.mck10.FastApplet.FastApplet
FastApplet is a class which can be used in combination with
a subclass of AppletPanel to create a fast loading applet.
FastApplet displays a splash screen while the main applet's classes are
loading. When the classes are all loaded, it displays the
AppletPanel, which contains all of the functionality of
the main applet. The text and graphics of the splash screen can be
customized using < PARAM > tags with the names "InitialMessage" and
"PictureURL". The name of the AppletPanel subclass
containing the applet is passed in a < PARAM > tag with the name
"AppletClass".
Source Code is available.
init() reads in the param tags, sets up the splash screen
and starts a thread for loading the main applet class.
paint(g) paints the background image and splash text
for the splash screen.
run() is called when the thread is started in the
init() method.
update(g) is overridden so that the screen is not blanked
before each repaint.
public FastApplet()
public void init()
init() reads in the param tags, sets up the splash screen
and starts a thread for loading the main applet class.
public void run()
run() is called when the thread is started in the
init() method. The applet classes are loaded in the
run method. When the classes are done loading, the AppletPanel's
setup method is called, and then the splash screen
is replaced with the real applet.
public void update(Graphics g)
update(g) is overridden so that the screen is not blanked
before each repaint.
public void paint(Graphics g)
paint(g) paints the background image and splash text
for the splash screen. After the splash screen is replaced with
the real applet, the paint method just calls the default
applet paint method.
All Packages Class Hierarchy This Package Previous Next Index