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.
-
buttonLabel
- The label on the button that starts the search.
-
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
- The label on the button that starts the search.
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
All Packages Class Hierarchy This Package Previous Next Index