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


Note: Examples are applications unless noted otherwise.

For all examples, place the image files in a directory named images in the same directory as the source and class files for the example. For example, here's the setup for ActionDemo:

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-2001 Sun Microsystems, Inc. All rights reserved.