Export (0) Print
Expand All

Creating Projects

Visual Studio 6.0

A project is a collection of files that make up an application. In Visual J++, projects are directory-based, which means the project is defined by the files in the project directory structure on the hard disk.

Visual J++ provides several code templates to help you create a project. A template consists of a skeleton Java class that provides the basic code framework. Using these templates, you can create the following types of projects:

  • Windows application   You can write full-featured Windows applications using the Windows Foundation Classes for Java (WFC). Your Java class extends com.ms.wfc.ui.Form, and you can use the RAD features of the Forms Designer to modify your form. Visual J++ also provides the Application Wizard to create Windows applications.

  • Dynamic HTML application   You can use the WFC classes to program in Dynamic HTML. Your Java class extends com.ms.wfc.html.DhDocument.

  • COM DLL   You can create a Java class, package it into a COM DLL, and use it in any application that supports COM.

  • Control   You can create your own control using WFC. Your Java class extends com.ms.wfc.ui.UserControl and can be modified in the Forms Designer.

  • Java console application   A console application has no graphical user interface. You can use the nongraphical classes in either WFC or the Java API to develop your application.

  • Java applet   An applet is launched from an HTML page. Your Java class extends java.applet.Applet, and typically uses the classes defined in the java.awt package.

You can also create an empty project without using any of the code templates.

A Visual J++ project is associated with a .vjp file, which tracks certain project settings. Each project is then contained within a solution. A solution can contain a single project or multiple projects, and is identified by an .sln file. For information about adding multiple projects to a solution, see Creating a Multiproject Solution.

In addition to creating a new project, you can:

Show:
© 2014 Microsoft