Applet Tab

Use the Applet tab to create an applet project either by using existing sources or by creating new sources. The Java WorkShop creates the applet project in the source directory you specify and adds its image to the current portfolio.

Project Name
The name of the project. You do not need to include the extension .prj. Make sure you are consistent in the use of capitalization in project and file names (even if you are working on Windows NT or Windows 95, where file names are not case-sensitive). The Java WorkShop is case-sensitive.

Source Directory
The path name of the directory where you want to store the .prj file, source files, and other project files. For clarity, you should store a project in its own directory.

Existing Sources
Field that controls whether or not the Java WorkShop uses existing source files for your project. If sources exist for the project, click the Yes radio button. You will be required to fill in the Sources and Main Class File fields. If sources do not exist for the project, click the No radio button and skip to the Create Using field.

Sources
If you set the Existing Sources field to Yes, you must add the names of the source files to the Sources list. Clicking the Add All in Directory button adds all .java files in the source directory. Clicking the Add Selected button opens a file chooser in which you can select the .java files to add. If you make a mistake, delete a file by selecting its name in the Sources list and clicking the Delete button. Or, use the Delete All button to delete all files.

Run Page
The name of the HTML file that executes the applet. This field is optional. If you do not specify an HTML file, the WorkShop automatically creates it when you run the applet. The WorkShop creates the HTML file using the attributes you specify in the Run tab in the Project Manager.

Main Class File
The name of the .class file in which the init method is defined. You must enter a value in this field if you set the Existing Sources field to Yes.

Create Using
If the Existing Sources field is set to No, use this field to indicate whether you want to create the sources using Visual Java or the Source Editor. Use Visual Java if you want to create a graphical user interface for your project.

Command buttons
Apply--Creates the project <.prj file using the name, source filenames, and other information you supplied and stores it in the specified directory

Help--Displays help for the Applet tab

See also:

Creating an Applet Project