Add Property Dialog Box

   

Allows you to create a new property in your class.

With the Add Property dialog box you can:

Options

Property Name

A text box that allows you to specify the name of your property. Property names usually start with a capital letter and must follow standard Java naming conventions.

Data Type

A dialog box that defines the data type for the property. You can enter a data type in the edit portion of the dialog box or select a predefined data type from the list.

Category

A dialog box that allows you to specify a category for your property. You can select a predefined category from the list. Categories allow you to group related properties. The Visual J++ Properties window allows you to display properties in categories to make finding related properties easier.

Default Value

A text box that allows you to specify a default value to assign to the property. Any values assigned to the property should match the data type assigned for the property or errors will occur during compilation.

Description

A text box that allows you to enter a description for the property. The description of the property allows the user of the property to view descriptive information about the property. Visual J++ displays the description of the property in the description pane of the Properties window.

Associated Member Variable

A text box that allows you to enter the name of the member variable that will be associated with the property. The associated member variable is a private member used to store the property's data.