|
Corrections
|
CorrectionsPage 12: Replace "The hard-core Java programmer" with "Hard-core Java programmers" at the start of the text in the 4th bullet point on the page. Pages 120, 123 and 130: Replace the first line of the body of the paint() method with: g.setColor(getBackground()); Page 188: Replace the sentence after the Design Issues heading with the following sentence: While much of the design of NPS is relatively straightforward, there are two issues that bear a closer look: filtering and security. Page 189: Delete the heading Persistence and the paragraph that follows that heading. Page 190: The name of the class used by the NPS client was incorrectly labelled as FilteredQuoteFeed. Rather, it is QuoteReceiver. Below is the corrected Figure 9-1. Pages 203-216: The listings for the NPS client correspond to a version of the code that was intended for use with JDK 1.0.2. The NPS code on this Web site does not match it, and is intended for JDK 1.1 and later. The IDL listings and code fragments in the rest of Chapter 9 are independent of the JDK version. Pages 215-216: The listing for Popup.java was erroneously published with the code for the TextRow class. The correct listing is below: package NPS;
import java.awt.*;
public class Popup extends Dialog {
public Popup(String title, String message, Frame top) {
super(top, title, true);
setLayout(new GridLayout(2,1));
add(new Label(message));
Panel p = new Panel();
p.add(new Button("OK"));
add(p);
pack();
}
public boolean handleEvent(Event e) {
if(e.id == Event.ACTION_EVENT
|| e.id == Event.WINDOW_DESTROY) {
hide();
dispose();
return true;
}
return super.handleEvent(e);
}
}
Page 237: The -InitialHost and -InitialPort command line arguments do not exist. Instead, use -ORBInitialHost and -ORBInitialPort, respectively. Page 253: Delete the Figure 10.1 and caption; it is incorrect. Page 271: Delete the figure that appears in the book and substitute the figure below as Figure 5-1:
Page 299: Add this figure between Sections 8.2 and 8.3:
|