# Adding or Removing Existing Sources for a Project

You can add existing Java files to a project or remove them from the Project Files list using the information on this page.

## Adding Files

You can add existing Java files to your new project by either adding all of the files in the source directory or adding individual files from any directory. Use the appropriate steps below to add existing files:

To add all of the files in the project source directory:

- Click Add All in Directory.
  All of the files in the project's source directory will be added to the Project Files list. The Project Files list indicates each file name to be added to the project.

To add a file from another directory:

1. Click Add.
   The file chooser is displayed.
2. Type the path and file name of the file you want to add.
3. Click OK.
   The file you specified will be added to the Project Files list. The Project Files list indicates each file name to be added to the project.

## Removing Files

If after adding files to the Project Files list, you decide you want to remove any or all of the files, do one of the following:

To remove one file:

1. Select the file you want to remove by clicking on the file name.
2. Click Delete.
   The file is removed from the Project Files list.

To remove all of the files from the project file list:

- Click Delete All.
  All of the files from the Project Files list are removed.

## After Adding Existing Source Files

1. Click Next.
2. Depending on your scenario do one of the following:
   - If you are creating an applet project with existing source files, review the next wizard window.
   - If you are creating a standalone project with existing source files, review the next wizard window.
   - If you are creating a package project with existing sources, click Finish.
     Java WorkShop adds the project to the project manager, and the source editor window displays a project template to which you can add your source code.