Open an Applet as a Project

Tour of Cosmo Code Tutorial Contents Change Project Settings

To work with an existing Java applet, application, or package in Cosmo Code, you need to convert it to a new project:

1. In the Cosmo Code main window, choose Project > New... from the menu bar.

2. In the Name field, replace Default with QuickMenu.

3. In the Type field, choose Applet.

4. In the Import/Create Files field, choose "Import files from path."

When you convert an existing program to a project, you do not have the option of specifying use of the visual builder at startup. You can, however, start the visual builder later. The visual builder creates an applet class which is not appropriate for an existing applet.

5. In the Project Path field, type the pathname of the QuickMenu directory.

6. Click OK.

7. Click "Build" button on the question dialog if you would like to build the project right away.

After clicking "OK" in the previous step, the tool puts up a dialog asking the user whether he/she'd like to build the project. Building the project would enable static analysis views.


Cosmo Code creates a project called QuickMenu. The project files are displayed in the Project card, and Project: QuickMenu appears in the status line above the Source Panel. All the files in the menu directory except QuickMenu.fixed have been included in the project. The .fixed extension is not recognized as a legitimate file extension for a Java applet or application.


Tour of Cosmo Code Tutorial Contents Change Project Settings

Guide to the Cosmo Code Development Environment
12-96*152