Code Style page (Project Properties dialog box)

The Code Style page of the Project Properties dialog box allows you to customize your coding style on a project-by-project basis.

To set coding style options for all new projects, use the Default Project Properties dialog box (Tools|Default Project Properties).

Braces

Determines how braces are inserted.

End Of Line

Appends the right brace to the end of the existing line.

Next Line

Inserts the brace at the beginning of the following line.

Example

Displays an example of the selected option.

Event Handling

Determines how event handlers are created.

Anonymous Adapter

Creates event handlers using anonymous inner classes. For more information about anonymous adapters, see the topic Using anonymous adapters in the "Working with events" chapter of the Component Writer's Guide.

Standard Adapter

Creates event handlers using separate adapter classes.

Match Existing Code

Creates event handlers using the existing method.

Example

Displays an example of the selected option.

Use Beans.instantiate()

You can instantiate objects by using Beans.instantiate() as well as new.

For more information, see the Instantiating serializable JavaBeans in the "Serializing JavaBeans" chapter of the Component Writer's Guide.

See also:
Customizing your coding style