Errata


Print Print Icon

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



Version Location Description Submitted By
Printed Page 45
middle

Either the import section for SimpleEdit class needs java.awt.Toolkit or, on page 53,
private int preferredMetaKey = Toolkit.getDefaultToolkit()... needs the full
java.awt.Toolkit.getDefaultToolkit()... (as you have done in initComponents())
Very minor point: getLabel (page 54) and setLabel (page 53) are deprecated in 1.4.1.
They have been replaced by getText and setText.

Anonymous 
Printed Page 101
Underneath Figure 7.1

I needed to insert a "space" character immediately after the ":" in the mainfest file
example to make it work, i.e it needed to be:

"Main-Class: com/wiverson/macosbook/SimpleEdit"

Without the space inserted I got the following jar command error:

java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:359)
at java.util.jar.Manifest.read(Manifest.java:162)
at java.util.jar.Manifest.<init>(Manifest.java:52)
at sun.tools.jar.Main.run(Main.java:124)
at sun.tools.jar.Main.main(Main.java:904)

Anonymous