The JavaTM Tutorial
Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Trail: Creating a GUI with JFC/Swing
Lesson: Using Other Swing Features

Using Other Swing Features: Examples (1.1/1.2)

The table that follows lists every 1.1/1.2 example in the Using Other Swing Features lesson, with links to required files and to where each example is discussed.

Note: These examples use the Swing 1.1 API, which is supported by J2SE 1.2 and compatible releases, as well as JDK 1.1 + JFC/Swing 1.1. To see more up-to-date versions of these examples that can be launched using JavaTM Web Start, see the list of 1.4 examples (in the Creating a GUI with JFC/Swing trail).

Examples are applications unless noted otherwise. See Getting Started with Swing (in the Creating a GUI with JFC/Swing trail) for details about releases and instructions on compiling and running programs.

You can get the source, image, and other files required for all these examples by downloading the Tutorial Examples bundle (outside of the tutorial), which contains the files in the correct hierarchy. If you download an individual example, take care to have all the necessary files in the proper hierarchy when you compile and run it. For example, many examples expect their image files to be in a directory named images that's in the same directory as the example's class files. Here's a typical setup:

Directory structure

Source Files Image & Other Files Where Described
AccessibleScrollDemo.java (in a .java source file)
   Rule.java (in a .java source file)
   Corner.java (in a .java source file)
   ScrollablePicture.java (in a .java source file)
youngdad.jpeg How to Support Assistive Technologies
ActionDemo.java (in a .java source file) right.gif, middle.gif, left.gif How to Use Actions
BorderDemo.java (in a .java source file) left.gif How to Use Borders
CustomIconDemo.java (in a .java source file)
   ArrowIcon.java (in a .java source file)
middle.gif How to Use Icons
IconDemoApplet.java (in a .java source file) (an applet)
   SwingWorker.java (in a .java source file)
   Photo.java (in a .java source file)
right.gif, left.gif, dimmedRight.gif, dimmedLeft.gif, stickerface.gif, lainesTongue.gif, kathyCosmo.gif, ewanPumpkin.gif,
To run the applet: IconDemoApplet.html
To view the <APPLET> tag: IconDemoApplet.atag
How to Use Icons

Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Copyright 1995-2004 Sun Microsystems, Inc. All rights reserved.