Swing, 2nd Edition Front Cover

Swing, 2nd Edition

  • Length: 912 pages
  • Edition: 2nd
  • Publisher:
  • Publication Date: 2003-02
  • ISBN-10: 193011088X
  • ISBN-13: 9781930110885
  • Sales Rank: #1621783 (See Top 100 Books)
Description
This book builds on the successful approach of the first edition of Swing, once again taking the power and flexibility of Java’s Swing library to its limits. Using a fast-paced style, it starts by introducing each of the Swing components and continues with production-quality code examples in which Swing features are customized, combined, and vigorously exercised to demonstrate real-world usage.With over 400 pages of revised text, additional examples, and new material to bring the book up to date with J2SE 1.4, Swing 2nd edition includes complete coverage of the new JSpinner and JFormattedTextField components, the new Focus and Keyboard architectures, and many other new and enhanced Swing features. Three new chapters have also been added to cover the construction of HTML and XML editor applications, and how to work with the new Drag & Drop architecture.

Written for the experienced Java developer, Swingprovides 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.

The best thing about this text has to be its sample programs, many of which incorporate other Java APIs to do “real” work. For example, a demo of the scroll pane Swing component uses other JFC classes to display JPG images. For working with lists, the authors show how to process .ZIP files in Java. For demonstrating table programming, there’s coverage of JDBC to connect to databases. Other standout code samples include a working FTP client and a fully functional .RTF word processor. (Many of these examples are enhanced in separate steps, showing off new Swing classes and features along the way.) The authors do a particularly good job of annotating code with clear explanations referenced with numbered bullets that point out important lines of code.

The other noteworthy feature here is the material on extending basic Swing functionality through custom code. (To use Swing effectively, you definitely need to be able to customize its classes. The authors show you how.) There are examples for enhancing Swing with custom layout managers and numerous samples that extend trees and tables, and even a section on the basics of creating new pluggable look and feel (PLAF) modules for Swing.

With material here on virtually every component and API, plus advanced coverage on using and extending Swing, this in-depth tutorial will prove to be an indispensable resource. It’s ideal for any Java developer who wants to create powerful Swing interfaces for real-world projects. –Richard Dragan

Topics covered: Overview of Swing and JFC, lightweight and heavyweight controls, Model View Controller (MVC) architecture, Swing pluggable look and feel (PLAF), sizing components, event handing and multithreading issues, timers, graphics debugging, painting and validation, focus management, SwingUtilities methods, frames, panels and borders, built-in and custom layout managers, labels and buttons, tabbed panels, scrolling and split panes, comboboxes and listboxes, text components, Swing undo support, menus and toolbars, progress bars and sliders, JPEG editing, custom and standard dialog boxes, layered panes, custom and built-in MDI support, trees, tables (basic and advanced features), advanced text component programming, sample .RTF word processor, printing, and Java2D API fundamentals.

To access the link, solve the captcha.