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

Class chap7.ch7_fig3

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

public class ch7_fig3
extends Applet
A class that searches the document specified in the URL parameter for the word specified in the find parameter.
See Also:
URL, InputStream

Variable Index

 o buttonLabel

Method Index

 o dosearch()
Gets the URL and search word parameters, then opens a stream connection to the document at that URL and passes the stream and the search word to the FindWord method.
 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

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
 o dosearch
  public void dosearch()
Gets the URL and search word parameters, then opens a stream connection to the document at that URL and passes the stream and the search word to the FindWord method.
See Also:
FindTheWord, URL, InputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index