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:

  1. Open the project.

  2. Launch the visual builder by clicking on the visual builder icon or by choosing Project > Launch Visual Builder.

  3. In the visual builder, create the interface.

  4. Choose File > Save.

  5. 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.

  6. Add your_interface.vb and your_interface.java to the project.

  7. 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.

  8. 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