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
-
buttonLabel
-
-
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.
-
handleEvent(Event)
- Handle the search button, starting a new search
if the start button is pushed.
-
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.
buttonLabel
public final static String buttonLabel
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
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
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