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 favorably 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.Java Swing, 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
A supporting web site with utilities, examples, and supplemental materials
Whether you're a seasoned Java developer or just trying to find out what Java can do, you'll find Java Swing, 2nd edition an indispensable guide.
Marc Loy is a senior programmer at Galileo Systems, LLC, but his day job seems to be teaching Java and Perl to various companies -- including Sun Microsystems. He has played with Java since the alpha days and can't find his way back to C. He is developing an interactive learning application at Galileo written entirely in Java. He received his master's degree in computer science at the University of Wisconsin-Madison, and still lives in Madison with his partner, Ron Becker. He does find time to relax by playing the piano and/or throwing darts, depending on how successful the day of teaching or programming was.
Robert Eckstein, an editor at O'Reilly, works mostly on Java books (notably Java Swing) and is also responsible for the XML Pocket Reference and Webmaster in a Nutshell, 2nd Edition. In his spare time he has been known to provide online coverage for popular conferences. He also writes articles for JavaWorld magazine. Robert holds bachelor's degrees in computer science and communications from Trinity University. In the past, he has worked for the USAA insurance company and more recently spent four years with Motorola's cellular software division. He is the co-author of Using Samba.
David Wood is Technical Director of Plugged In Software in Brisbane, Australia, where he works with a wonderful team producing Java custom software. In his eclectic career he has been a ship's navigator, deep sea salvage engineer, and aerospace project manager for the U.S. Navy, and consulted to Lawrence Livermore National Laboratory and Netscape. David enjoys hiking and sailing with his very patient wife and teaching his son Perl before he goes to kindergarten. David holds degrees in mechanical, electrical, aeronautical, and astronautical engineering from the U.S. Naval Postgraduate School and the Virginia Military Institute.
a senior software engineer at Berbee, with over ten years professional experience as a systems developer. He started designing with objects well before work environments made it convenient, and has a passion for building high-quality Java tools and frameworks to simplify the tasks of other developers.
has been working with Java since its early days and teaches the language at venues ranging from Sun Microsystems to public high school. He has a BA from Oberlin College and an M.S. from the University of Wisconsin-Madison.
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects.
The animal on the cover of Java Swing, Second Edition, is a spider monkey (Ateles geoffroyi). Most spider monkeys can be found in the forests of Central America from Southern Mexico to Panama. Almost all varieties of spider monkeys live exclusively in trees and maintain a diet of fruit and nuts.
What gives the spider monkey its name is its long limbs and tail (it sometimes resembles a spider as it moves). A. geoffroyi's fur is black, brown, golden, or reddish.
Spider monkeys are social and can form groups of approximately 30 animals. They live in treetops and forage diurnally in troops often led by females, which have a more active role than males in the food-gathering process. Spider monkeys are often seen hanging by one branch or by their unusually long tails, which basically function as a fifth limb. They can even grasp objects with their tails.
When approached or threatened, spider monkeys will bark and flail wildly, which usually scares off intruders. If this tactic is unsuccessful, they will break away from their groups and retreat.
Matt Hutchinson was the production editor and copyeditor for Java Swing, Second Edition. Matt Hutchinson and Mary Brady proofread the book. Tatiana Apandi Diaz and Sarah Sherman provided quality control. Genevieve d'Entremont and Andrew Savikas provided production assistance. Brenda Miller updated the index from the first edition.
Hanna Dyer designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
David Futato designed the interior layout. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Matt Hutchinson.
After trying to work through my other Swing book, I decided to give this book a try in the hope it would teach me more of the areas that I am lacking in (being a java server side developer, thats a lot) and I must say that this book is extremely clear on all kinds of subjects.
The only drawback that other readers commented on, being the lack of the layoutmanagers, isnt important to me, since I am using the JGoodies looks and forms for laying out everything.
The Swing classes eliminate Java's biggest weakness: its relatively primitive user interface toolkit. Swing provides many new components and containers that allow you to build sophisticated user interfaces, far beyond what was possible with AWT. The old components have been greatly improved, and there are many new components, like trees, tables, and even text editors. It also
adds several completely new features to Java's user interface capabilities: drag-and-drop, undo, and the ability to develop your own "look and feel," or the ability to choose between several standard looks. Written for the experienced Java developer, Java Swing provides an in-depth guide to getting the most out of Sun's Swing/JFC user interface classes. Mixing real-world code examples and expert advice on advanced features, this book shows how to make use of this powerful library effectively within your own projects.
As a general Swing reference, this book is very good; where it excels is at covering the numerous important aspects of Swing theory and application. I was initially disappointed by the lack of coverage of layout managers, however the rest of the content has been extremely useful in helping me understand the key aspects of Swing GUI development.
Java Swing gives you in-depth coverage of everything you need to know to take full advantage of Swing, providing detailed descriptions of every class and interface in the key Swing packages. It shows you how to use all of the new components. Whether you're a serious Java Swing Developer or just trying to figure out what Java can do you will find this book as an indispensable guide.
As a general Swing reference, this book is OK; where it excels is at covering the numerous important aspects of Swing theory and application. I was initially disappointed by the lack of coverage of layout managers, however the rest of the content has been extremely useful in helping me understand the key aspects of Swing GUI development.
To the authors: A nice addition to the text would be a spiral-bound quick-reference supplement containing the property tables you lay out so well (I particularly like the "is/get/set" indicators - they are especially helpful!)
Together with the code samples and the additional downloadable pdf documents, the book offers me everything I wanted to know about e.g. HTML editing - information that is not always easy to find elsewhere.