Jump to ratings and reviews
Rate this book

Programming with JFC

Rate this book
Some of the most appealing features of Java programming are the Swing user interface classes in the Java Foundation Classes (JFC) from Sun Microsystems. Programming with JFC is a useful guide to the powers of Swing classes, which let Java programmers create rich user interfaces that rival native code interfaces in both complexity and functionality.

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

1 person want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.