Class chap2.ch2_fig1
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class chap2.ch2_fig1

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----chap2.ch2_fig1

public class ch2_fig1
extends Applet
An applet that resizes itself and prints "Hello Java" on the screen.

Method Index

 o init()
Setup the Hello Java string, and resize us to 200,150.
 o paint(Graphics)
Display the specified string at 20,50.

Methods

 o init
  public void init()
Setup the Hello Java string, and resize us to 200,150.
Overrides:
init in class Applet
 o paint
  public void paint(Graphics g)
Display the specified string at 20,50.
Overrides:
paint in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index