Creating an Applet Project
When you create an applet project, you must enter a project name and source directory. The Java WorkShop supplies default values for all other project attributes.
To create an applet project:
- Check the WorkShop tool bar for the name of the current portfolio.
If it is not a portfolio for which you have write permission, change portfolios by choosing Portfolio => Choose and selecting another portfolio name.
- Choose Project => Create => Applet.
- In the Project Name field, enter the name of the project.
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.
- In the Source Directory field, enter the path name of the directory where you want to store the project.
If the directory does not exist, the WorkShop will create it. You should store a project in its own directory.
- If source files do not exist for the applet:
- Click the No radio button in the Existing Sources field.
- Click either the Visual Java or Source Editor radio button in the Create Using field.
- If source files exist for the applet:
- Click the Yes radio button in the Existing Sources field.
- Click either the Add All in Directory or Add Selected button to add the source file names to the Sources list.
- If an HTML page exists that executes the applet, type its URL in the Run Page field. If an HTML page does not exist, the WorkShop automatically creates it when you run the applet.
- Type the name of the class file in which init is defined (for example, Blink.class) in the Main Class File field.
- Click Apply.
The Java WorkShop creates the project .prj file using the name, source filenames, and other information you supplied and stores it in the specified directory. The project name is added to the Project => Choose, Edit, Remove, Run, and Copy submenus.
If you are creating a new source file, either Visual Java or the Source Editor opens. If you are using existing source files, the Portfolio Manager opens with the new project selected.
You can change the default attribute values for the project using the Project Manager. These attributes define the project's individual characteristics such as the options to use to build the project. For a listing of all project attributes, see Editing Project Attributes.
See also:
- Creating a Standalone Program Project
- Creating a Java Package Project
- Creating an Image Project
- Creating a Remote Applet Project
- Applet Tab