| Log In | Not a Member? |
Contact ADC
|
|
| Previous Section | Table of Contents | Next Section |
|
The SlideShow project contains 11 source files:
As you can see from this brief synopsis of the source files involved,
there is quite a bit of functionality in such a simple application.
In order to make this tutorial easier to follow and understand, we have
broken the implementation of these classes into separate HTML files. Each
HTML file contains a series of steps which explains the code that will
be added to the source skeleton in order to implement all of the necessary
functionality provided by the class.
Each clipping is named in a manner that summarizes the functionality of that particular code snippet. For example, AboutDialog Setup indicates that the code snippet is used to setup the dialog. For clarity, all snippets will start with the name of the source file they belong to. Throughout this tutorial, we will be specific about which source clipping should be used, and where it should be placed in the code. When there is a section of code near an area of code that needs an added text clipping, we will use the following format throughout the tutorial: |
/**
* This method does something
*/
void foo ( int x )
{
|
// comment that tells the user which clipping to insert
// i.e., insert myClass foo
|
|
Note that the top area is in a light blue gray color. This region contains the code preceding the area where the clipping will be inserted. The next area is a light yellow color. This shows the comment in the source that indicates the clipping to be used. The specific clipping should be inserted on the line immediately following this comment. |

|
We recommend that you arrange your source window and the clipping window in the Finder so that you can see both simultaneously. This will facilitate dragging. See the picture above for an example. With the source window as the front most window, click on the clipping to be dragged into the source file, and drag the file to the source window. |

|
You will see an I-Beam cursor indicating where the clipping will be placed (see picture above). Make sure that you place the clipping precisely. Poor placement may result in compile errors. Frequently, there will be a blank line immediately following the comment where the clipping goes. Be careful to place the clipping before any trailing closing brace character }. In the tutorial file, a section will show the source after a successful drag operation. Make sure that your source matches this block. |
/**
* This method does something
*/
void foo ( int x )
{
|
System.out.println( "x: " + x ); |
| } |
|
The top section (in light blue) is shows the contents of the skeleton file. The darker blue area shows the contents of the newly added text clipping. This color scheme makes it easy to see what code preexists in the skeleton, and what code is added by the clipping. Now that we have described the process of creating the complete source file using the skeleton file and the clipping, lets start building the project! |
| Previous Section | Table of Contents | Next Section |