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.
   
  -   init() init()
-  Resize us to be wide enough for the status string.
  
-   paint(Graphics) paint(Graphics)
-  Paint our window.
  
-   run() run()
-  The main loop for the main thread.
  
-   start() start()
-  Start the main thread for this applet.
  
-   stop() stop()
-  Stop this thread.
   
 start
start
  public void start()
  -  Start the main thread for this applet.
  
    -  Overrides:
    
-  start in class Applet
  
 
 init
init
  public void init()
  -  Resize us to be wide enough for the status string.
  
    -  Overrides:
    
-  init in class Applet
  
 
 stop
stop
  public void stop()
  -  Stop this thread.
  
    -  Overrides:
    
-  stop in class Applet
  
 
 run
run
  public void run()
  -  The main loop for the main thread.
 paint
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