# Exercise 2: Copying and Pasting a Project

This exercise shows you how to copy a project in your personal portfolio and paste it into your public portfolio. If you have not created a public portfolio, you should do so now. Step-by-step instructions are in Creating a Portfolio.

## Copying a Project

1. Choose Portfolio => Choose => personal.
   The Java WorkShop opens your personal portfolio. If you do not have a personal portfolio, see Importing Your Personal Portfolio.

2. Click the Portfolio Manager control on the WorkShop tool bar.

3. Select the Blink project.
   If you do not have a Blink project, see Creating a Project for instructions on how to create it.

4. Click the Copy control on the Portfolio Manager tool bar.
   The WorkShop copies the Blink project to the clipboard.

## Pasting a Project

1. Choose Portfolio=>Choose and select the name of your public portfolio.
   The WorkShop opens your public portfolio.

2. Click the Paste control on the Portfolio Manager tool bar.
   The WorkShop opens the Paste Project dialog box. The path name to the Blink project appears in the Project File field.

3. Make sure the copy radio button to the right of the Create by field is selected.
   This button tells the WorkShop to copy all project files (`Blink.prj`, `Blink.java`, `Blink.class`) to your destination directory. The WorkShop does not copy the default HTML file, `Blink.tmp.html`.

4. In the destination directory, enter the path name of the directory where you want to store the files.
   This directory must be a directory accessible by your HTTP server.

5. Click the Yes radio button to the right of the Include Source field.

6. Make sure `Blink` appears in the New Project Name field.

7. Click the Paste button.
   The project name and image appear in your public portfolio. The project files are added to the destination directory with the addition of two files: `Blink.jws.src` and `Blink.jws`. The first file contains the project source files and the second file contains all other files, such as the `.prj` file. If another user copies the project, the WorkShop copies the `.jws.src` and `.jws` files instead of the individual project files.

Next lesson:

  You have completed the exercises in this tutorial. The next tutorial is Tutorial Seven: Customizing a Run Page.