Java Swing by Robert Eckstein, Marc Loy, and Dave Wood This page lists errors in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. This page was last modified on December 10, 1999. 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 Confirmed errors: {35} In the code example, JLayeredPane desktop; Should be JDesktopPane desktop; (188) The final JList constructor should be public JList(Vector vector) Creates a JList using a Vector of objects passed in to populate the data model. The contents of the list will be the result of calling toString() on each element in the Vector. (313) In the sentence that begins "The validateRoot property is always true to ensure that revalidation...", whoch should be which. (317) Under the getScrollableUnitIncrement description: "The unit increment specifies how to display the next logical row or column; the bolck increment specifies...", bolck should be block. {437} Under The MenuDragMouseListener Interface, it reads: public abstract void menuDragMouseDragged(PopupMenuEvent e) Called when the mouse has been dragged inside of a menu item. public abstract void menuDragMouseReleased(PopupMenuEvent e) Called when the mouse has been released inside of a menu item. public abstract void menuDragMouseEntered(PopupMenuEvent e) Called when the mouse is being dragged, and has entered a menu item. public abstract void menuDragMouseExited(PopupMenuEvent e) Called when the mouse is being dragged, and has exited a menu item. It should read: void menuDragMouseDragged(MenuDragMouseEvent e) Called when the mouse has been dragged inside of a menu item. void menuDragMouseReleased(MenuDragMouseEvent e) Called when the mouse has been released inside of a menu item. void menuDragMouseEntered(MenuDragMouseEvent e) Called when the mouse is being dragged, and has entered a menu item. void menuDragMouseExited(MenuDragMouseEvent e) Called when the mouse is being dragged, and has exited a menu item. {480} The import statement in the example should be: import javax.swing.*; ...to reflect the latest package names, and the getContentPane().add() method should be to follow our "standard" of using setContentPane() when there is only one component to add: setContentPane(jsp); (496) In the first line below the Properties table, "whic h" should be "which". (501) In the last method described, almost at the bottom of the page: "public setValueAt( Object balue," should be "value" (515) In the middle of the JTable Constants table, in the description of AUTO_RESIZE_NEXT_COLUMN ! end of first line "netx" should read "next" (518) In the middle of the page, public Compinent should read Component (526) Under the heading "Inner Classes," "bublic" should read "public" {563} First code example: add(messageLabel, BorderLayout.SOUTH); Should read: getContentPane().add(messageLabel, BorderLayout.SOUTH); {686} It now reads // Remove an UndoableEditListener using our support object. public void removeUndoableEditListener(UndoableEditListener l) { support.AddUndoableEditListener(l); } Should read: // Remove an UndoableEditListener using our support object. public void removeUndoableEditListener(UndoableEditListener l) { support.removeUndoableEditListener(l); } (903) Within getViewAtPosition() method: use "entry" ...contains the View's allocation on entry and is constrained to the child's View on exit....