Class chap4.ch4_fig9
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class chap4.ch4_fig9

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----chap4.ch4_fig9

public class ch4_fig9
extends Applet
implements Runnable
An applet that finds the other applets that exist within this AppletContext, and stops them.

Method Index

 o init()
Resize us to be wide enough for the status string.
 o paint(Graphics)
Paint our window.
 o run()
The main loop for the main thread.
 o start()
Start the main thread for this applet.
 o stop()
Stop this thread.

Methods

 o start
  public void start()
Start the main thread for this applet.
Overrides:
start in class Applet
 o init
  public void init()
Resize us to be wide enough for the status string.
Overrides:
init in class Applet
 o stop
  public void stop()
Stop this thread.
Overrides:
stop in class Applet
 o run
  public void run()
The main loop for the main thread.
 o paint
  public void paint(Graphics g)
Paint our window. Destroy each applet we find, then display a string boasting of this achievement.
Overrides:
paint in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index