When the "Show Results" button is pressed or
RETURN is hit while the query textfield has the
keyboard focus, a database lookup is performed,
the results are placed in a JTable, and the window
is resized to accommodate the table.
First display title, then, for each catalog item,
put its short description in a level-two (H2) heading
with the price in parentheses and long description
below.
Given a string, this method replaces all occurrences of
'<' with '<', all occurrences of '>' with
'>', and (to handle cases that occur inside attribute
values), all occurrences of double quotes with
'"' and all occurrences of '&' with '&'.
Illustrates the value of persistent HTTP connections for
pages that includes many images, applet classes, or
other auxiliary content that would otherwise require
a separate connection to retrieve.
Simple class describing an airline and associated
frequent flyer number, used from the TravelData class
(where an array of FrequentFlyerInfo is associated with
each customer).
Overrides the NetworkServer handleConnection
method to read each line of data received, save it
into an array of strings, then send it
back embedded inside a PRE element in an
HTML page.
Simple class describing a hotel name and associated
frequent guest number, used from the TravelData class
(where an array of HotelInfo is associated with
each customer).
Illustrates the value of persistent HTTP connections for
pages that includes many images, applet classes, or
other auxiliary content that would otherwise require
a separate connection to retrieve.
Illustrates the value of persistent HTTP connections for
pages that includes many images, applet classes, or
other auxiliary content that would otherwise require
a separate connection to retrieve.
Simple class describing a car company and associated
frequent renter number, used from the TravelData class
(where an array of RentalCarInfo is associated with
each customer).
The background thread takes the currentQueries
object and every half-second places one of the queries
the object holds into the bottom of the TextArea.
An applet that reads a value from a TextField,
then uses it to build three distinct URLs with embedded
GET data: one each for Google, Infoseek, and Lycos.
Sets six cookies: three that apply only to the current
session (regardless of how long that session lasts)
and three that persist for an hour (regardless of
whether the browser is restarted).