Errata

Java Foundation Classes in a Nutshell

Errata for Java Foundation Classes in a Nutshell

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 43
4th paragraph on page, or first paragraph of 'Customizing JFileChooser

section';
My edition of JFC in a Nutshell is the 9/99 first edition. The changes for
the 12/99 reprint don't list the mistake as corrected.

In the section called 'Customizing JFileChooser' (bottom of page 43), the
second sentence of the first paragraph in that section reads "Both of these
abstract classes are defined in the javax.swing.filechooser class". This
should read "[...] in the javax.swing.filechooser package", because
javax.swing.filechooser is a package, not a class.

Anonymous   
Printed Page 114
getTransferData method

Since DataFlavor.plainTextFlavor has been deprecated in java 1.3, this method gives a
deprecation warning. The javadocs say to use
DataFlavor.getReaderForText(Tranfserable) instead, so this example needs a rewrite.

Anonymous   
Printed Page 201
First paragraph (GridLayout)

The description of the behavior of GridLayout relative to the specified number of
rows and columns is misleading. The text of the book says,
"If either the number of rows or the number of columns is set to 0, its value is
computed from the other dimension and the total number of components." In fact, the
number of columns is ALWAYS computed this way, unless the row value is set to zero.
From Sun's on-line documentation for GridLayout:
"When both the number of rows and the number of columns have been set to non-zero
values, either by a constructor or by the setRows and setColumns methods, the number
of columns specified is ignored. Instead, the number of columns is determined from
the specified number or rows and the total number of components in the layout. ...
Specifying the number of columns affects the layout only when the number of rows is
set to zero."

Anonymous   
Printed Page 441
JFileChooser Documentation

2 functions were left out of the JFileChooser Documentation

public boolean isAcceptAllFileFilterUsed()

Returns whether the AcceptAll FileFilter is used.

Returns:
true if the AcceptAll FileFilter is usedSince:
1.3

setAcceptAllFileFilterUsed

public void setAcceptAllFileFilterUsed(boolean b)

Determines if the AcceptAll FileFilter is used.

Since:
1.3

Anonymous   
Printed Page 709
index

The entry for DocumentListener interface (535) is missing from the index.

Anonymous