Class chap4.ch4_fig4
All Packages Class Hierarchy This Package Previous Next Index
Class chap4.ch4_fig4
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----chap4.ch4_fig4
- public class ch4_fig4
- extends Applet
A simple app that plays a tune, supplied by the applet tag
via the name "StartClip" every time Applet.start is called, and
plays another tune, paramter name "EndClip" every time
Applet.stop is called. Plays the RunningClip in a loop between
start and stop.
-
getAppletInfo()
- Tell anyone who might inquire what we are.
-
getParameterInfo()
- Tell anyone who might inquire how to use this applet.
-
init()
- Connect to the URLs specified by the StartClip and EndClip
parameters in the applet tag.
-
start()
- Whenever a user visits our page, the browser calls this.
-
stop()
- Whenever the user leaves our page, this gets called.
start
public void start()
- Whenever a user visits our page, the browser calls this.
This is an override of an Applet method..
- Overrides:
- start in class Applet
stop
public void stop()
- Whenever the user leaves our page, this gets called.
Another override of an Applet method.
- Overrides:
- stop in class Applet
getAppletInfo
public String getAppletInfo()
- Tell anyone who might inquire what we are.
- Returns:
- A string describing this applet.
- Overrides:
- getAppletInfo in class Applet
getParameterInfo
public String[][] getParameterInfo()
- Tell anyone who might inquire how to use this applet.
- Returns:
- A 2d string array describing the arguments to this
applet.
- Overrides:
- getParameterInfo in class Applet
init
public void init()
- Connect to the URLs specified by the StartClip and EndClip
parameters in the applet tag.
- Overrides:
- init in class Applet
All Packages Class Hierarchy This Package Previous Next Index