Class chap7.ch7_fig1
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class chap7.ch7_fig1

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----chap7.ch7_fig1

public class ch7_fig1
extends Applet
A class to search for a word in a text document using only URL.getContent to retrieve the document into a String.

Variable Index

 o buttonLabel
The label on the button that starts the search.

Method Index

 o handleEvent(Event)
Handle the search button, starting a new search if the start button is pushed.
 o init()
Get the parameter "URL" from the applet tag, create a panel with a TextField for entering the word to search for, and a Button for setting off the search.

Variables

 o buttonLabel
  public final static String buttonLabel
The label on the button that starts the search.

Methods

 o init
  public void init()
Get the parameter "URL" from the applet tag, create a panel with a TextField for entering the word to search for, and a Button for setting off the search.
Overrides:
init in class Applet
 o handleEvent
  public boolean handleEvent(Event e)
Handle the search button, starting a new search if the start button is pushed.
Overrides:
handleEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index