Adding a Visual Builder File to a Project

If you chose not to use the visual builder when you created your
project, Cosmo Code did not create a .vb file nor did it create
hooks to the visual builder in the .java file. This is also true
if you created a project from existing program files.
If you now decide that you want to use the visual builder for the
interface to your project, do the following:
-
Open the project.
-
Launch the visual builder by clicking on the visual builder icon
or by choosing Project > Launch Visual Builder.
-
In the visual builder, create the interface.
-
Choose File > Save.
-
In the Save File dialog, specify a name (different from the project
name) for the visual builder file including a .vb extension
and click OK.
If you don't include the .vb extension, Cosmo Code adds it
for you.
Two new files, your_interface.vb and your_interface.java,
are created in the project's directory.
-
Add your_interface.vb and your_interface.java to the
project.
-
In Cosmo Code's main window, choose, Project > Add File...
-
In the Add File dialog, choose one of the new files and click OK.
-
Repeat this process for the next file.
-
Until you are completely finished designing your applet or application,
keep the your_interface.java and your_project.java
files separate.
Each time you edit the interface in the visual builder, the changes are
written to your_interface.java.
-
In order to use the files in a complete program, you must either merge
the files or include hooks between the files. Both are done by editing
the files in the Source panel.

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