What do you think?
Rate this book
Programming with JFC begins with a quick tour of the basic principles of programming with Swing. First, Swing components are "lightweight" components (which means they do their graphics work using Java, not "native" code, as with the Abstract Window Toolkit (AWT) controls). Also, the authors do a good job of explaining the model-view-controller (MVC) architecture found in Swing components. MVC means that the different functions of controls are split up: display is handled by a view class, events are handled by a controller class, and the data are handled by a model class. MVC is one of the most rewarding features of Swing, but it does add complexity; the authors do a good job of outlining what you need to know to be productive, without getting bogged down in obsessive technical detail.
The majority of this text explores the basic features of Swing user interface classes, starting with layout managers; new features, such as springs and struts; and actual controls, such as buttons. Wisely, the authors begin with simpler controls before taking on the complexities of using data models with more advanced control types, such as trees and tables. Along the way, the authors delve into menus, toolbars, and dialog boxes, showing that Swing is capable of designing applications in Java that are just as rich and functional as anything written in other programming languages.
Much of the book contains source code and reference material to the features of Swing classes, but there is plenty of expertise on display, too; the book includes some excellent material on debugging Swing graphics and even some guidelines to designing custom Swing components. Overall, Programming with JFC is a great introduction to one of today's most compelling Java technologies. Swing is almost sure to be a winner with developers, and this intelligent text shows why it's a superior solution to creating appealing and efficient user interfaces in Java.
Paperback
Published April 21, 1998