Examples from the Java Class Libraries, Second Edition, Volume 2 java.applet java.awt java.awt.datatransfer java.awt.event java.awt.image java.awt.peer java.beans NOTICES: 1. These examples are excerpts from the Java Class Libraries book, whose copyright is owned by Addison-Wesley Longman, Inc. Permission to use, copy, modify, and distribute these examples for NON-COMMERCIAL purposes and without fee is hereby granted provided this copyright notice appears in all copies. These examples may not otherwise be used, copied, modified or redistributed without the express written permission of the authors and Addison-Wesley. 2. The duke image used in some examples is copyright protected by Sun Microsystems Inc. and may not be redistributed without permission from Sun Microsystems Inc. -- The examples in these directories are arranged in the following way: package | +--class | +--CLASS EXAMPLE | +--method | +--METHOD EXAMPLE For example, to find the class example for the RGBImageFilter class, go to the directory: awt.image/RGBImageFilter To find the method example for Component.repaint(), go to the directory: awt/Component/repaint In these directories you will find the example source code, compiled class files, and any necessary supporting files. You can run most examples with the command: java Main If the example requires an input file such as a GIF file, include it as a parameter on the command line: java Main duke.gif There are some gifs included in the "art" directory. See the note below regarding their usage and distribution. Some examples are executed using the appletviewer. For these examples, the HTML file is included. Run the example as: appletviewer index.html -- Note that not all examples in the book are included in these directories. In particular, we've only included examples that are complete programs. Examples that are code fragments have not been included. Cheers, Patrick Chan Rosanna Lee October 1997