The JFC Swing Tutorial: A Guide to Constructing GUIs (2nd Edition)
| < Day Day Up > |
| JFC is short for Java Foundation Classes, which encompass a group of features for building graphical user interfaces (GUIs [1] ) and adding rich graphics functionality and interactivity to Java applications. JFC was first announced at the 1997 JavaOne SM developer conference. It is defined as containing the features shown in Table 1. [2] [1] The acronym for graphical user interface, GUI, is pronounced "gooey." [2] See the JFC home page for more information on JFC features: http://java.sun.com/products/jfc/index.html. Table 1. Features of the Java Foundation Classes
This book concentrates on the Swing components. We help you choose the appropriate components for your GUI, tell you how to use them, and give you the background information you need to use them effectively. We also discuss other JFC features as they apply to Swing components.
Note: "Swing" was the code name of the project that developed the new components. Although unofficial , it's frequently used to refer to the new components and related API. "Swing" is immortalized in the package names for the Swing API, which begin with javax.swing .
Which Releases Contain the Swing API?
The short answer is that the Swing API has been included in the Java 2 platform, Standard Edition (J2SE TM ) since its initial release (1.2). A 1.4.2 release of the Java 2 platform is included on the CD that accompanies this book. You can also download the latest release from the Sun Microsystems Web site at: http://java.sun.com/j2se/. This book concentrates on the Swing API in the Java 2 platform, Standard Edition, v1.4.2. Except where noted, the code in this book works, without change, with earlier J2SE releases. [3] We also include notes about a few important changes expected in 1.5. [3] We recommend that you use the latest version of the Java 2 platform. However, it is possible to use the Swing components with releases as early as 1.1. We give tips for using earlier releases where necessary. Which Swing Packages Should I Use?
The Swing API is powerful, flexible ”and immense. In release 1.4 of the Java platform, the Swing API has 17 public packages:
Fortunately, most programs use only a small subset of the API. This book sorts out the API for you, giving you examples of common code and pointing you to methods and classes you're likely to need. Most of the code in this book uses only one or two Swing packages:
|
| < Day Day Up > |