Class chap4.ch4_fig2
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class chap4.ch4_fig2
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----chap4.ch4_fig2
  -  public class ch4_fig2
  
-  extends Applet
  
An applet that prints the string "Hello world, again" at
absolute applet-relative coordinates x=20, y=50 after clearing
the applet workspace to yellow.
  
  -  
	init()
   -  Resize the applet to slightly smaller than the applet
tag sizes us.
  
 -  
	paint(Graphics)
   -  Actually paint the string on the screen, first clearing the
workspace to yellow.
 
  
init
  public void init()
  -  Resize the applet to slightly smaller than the applet
tag sizes us.
  
    -  Overrides:
    
 -  init in class Applet
  
 
 
paint
  public void paint(Graphics g)
  -  Actually paint the string on the screen, first clearing the
workspace to yellow.
  
    -  Overrides:
    
 -  paint in class Component
  
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index