Objectives
To introduce and demonstrate the use of JDK features in sample applets and
applications.
Time Required
3 hours to become familiar with the contents of the sample projects.
Before You Begin
To add sample projects to your workspace:
The Sun JFC Examples projects will be added to your workspace, and the source code will be compiled.
Description
The Sun JFC samples in VisualAge for Java are the samples provided with Sun's JFC
product. You can run, edit, and manage them within the IDE. See the
README.txt file in each of the the sample projects' project_resources
subdirectories for information on working with each of the samples.
Running a Sample
To run one of the samples:
List of JFC Samples
Sample Name | Description |
FileChooserDemo | Demonstrates the File Chooser bean. |
MetalWorks | A simulated e-mail program that demonstrates several Swing features. See ide\project_resources\Sun JFC MetalWorks\README.txt. |
Notepad | Simple text editor that demonstrates the Swing look-and-feel menus, toolbars, file chooser, and so on. |
SampleTree | Demonstrates using JTree. See ide\project_resources\Sun JFC SampleTree\README.txt. |
SimpleExample | Demonstrates three different button and radio button look-and-feel styles. |
StylePad | Builds on the Notepad example. Provides font style, alignment, size, and color manipulation. |
SwingApplet | A most-basic applet, containing a swing button. |
SwingSet | Demonstrates all Swing components. |
Table | Demonstrates using JTable for working with database tables. See ide\project_resources\Sun JFC Table\README.txt and ide\project_resources\Sun JFC DBDemos\README.txt. |