Java 2D Graphics by Jonathan Knudsen Unconfirmed error reports are from readers. They have not yet been approved or disproved by the author or editor and represent solely the opinion of the reader. This page was updated January 27, 2004. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification UNCONFIRMED errors and comments from readers: {27} Bottom; Hi Jonathan, your wrote: "Why use floats instead of doubles? If you have special concerns about the speed of your app. [...] you might want to use Point2D.Float." It is not sure that float is faster than double. For some implementations of JVM the datatype float is slower than double, because float is internally converted to IEEE754-double and afterwards to the internal represenatiton for the processor (80x87). The Streaming SIMD Extensions for the Intel Pentium III admits operations on IEEE-754 Single-precision 32-bit real numbers --- but there is no JVM implementation I know that uses SIMD-Exentions. For the most modern implementations the speed for double and float is equal and there is no significant distinction. The only reason I see to use Point2D.Float is only memory consumbtion. One would save 4 Byte per Object. {39} setLine() methods description at bottom of page; Descripton of first setLine() method shows incorrect parameter arguments per Sun's API documentation. As is reads: public abstract void setLine(double x1, double x2, double y1, double y2) Should read: public abstract vaoid setLIne(double x1, double y1, double x2, double y2) [79] End of 1st paragraph; The erroneous sentence says: "First it strokes the outline and fills the interior of a circle using a partially transparent color:". It should say: "First it fills the interior and strokes the outline of a circle using a partially transparent color:".