, long regarded as the authoritative book on using the Swing classes, is available in a new edition that builds on a solid foundation in exploring the Java 2 Swing additions and modifications. This is a big, tremendously detailed, exhaustively researched, and ultimately authoritative reference that pushes the limits of what a book can do toward eliminating the necessity of writing experimental programs to see how Swing classes work in practice. You'll find in these pages bits of software that show how most of Swing works: all of the major features get lavish attention, while most of the minor classes are demonstrated adequately, as well.
You could probably find demonstrations free of charge on the Internet, however. The true value of this work is in the comments its five authors have attached to their copious examples. They can be quite specific: at least one such segment warns that default Swing behavior violates Mac OS X user interface guidelines and explains how to work around the problem. Another section explains how the methods of the UndoableEdit class can be used in various ways, to implement different user interface behavior options. Some readers will head straight to the O'Reilly Web site, where they can grab the code and examine it in an editor rather than in print--code listings take up a lot of space here--but everyone will appreciate the concise hierarchy, method, and property documentation, as well as the wisdom contained in the prose. --David Wall
Topics covered: The Swing classes for creating graphical user interfaces in the Java programming language. It covers all the windowing stuff--dialogs, buttons, containers, layouts, lists, and that kind of thing--as well as tables, trees, text-manipulation classes, formatted text, drag and drop, and accessibility support.
Swing is a fully-featured user interface development kit for Java applications. Building on the foundations of the Abstract Window Toolkit (AWT), Swing enables cross-platform applications to use any of several pluggable look-and-feels. Swing developers can take advantage of its rich, flexible features and modular components, building elegant user interfaces with very little code. This second edition of Java Swing thoroughly covers all the features available in Java 2 SDK 1.3 and 1.4. More than simply a reference, this new edition takes a practical approach. It is a book by developers for developers, with hundreds of useful examples, from beginning level to advanced, covering every component available in Swing. All these features mean that there's a lot to learn. Even setting aside its platform flexibility, Swing compares favourably with any widely available user interface toolkit - it has great depth. Swing makes it easy to do simple things but is powerful enough to create complex, intricate interfaces.
This 2nd edition includes: a new chapter on Drag and Drop; accessibility features for creating a user interface meeting the needs of all users; coverage of the improved key binding infrastructure introduced in SDK 1.3; a new chapter on JFormattedTextField and input validation; Mac OS X coverage and examples; coverage of the improved focus system introduced in SDK 1.4; pluggable Look-and-Feel coverage; coverage of the new layout manager, SpringLayout, from SDK 1.4; properties tables that summarize important features of each component; coverage of the 1.4 Spinner component; details about using HTML in components; a new appendix listing bound actions for each component; and a supporting web site with utilities, examples, and supplemental materials.