# Introduce Parameter Dialog Box

Use to specify options for the Introduce Parameter refactoring command. Use this command to introduce a new parameter to a method.

Select the expression to be replaced by a parameter and choose Refactor > Introduce Parameter from either the main IDE's or context menu to open the Introduce Parameter dialog box.

Element | Description
--- | ---
Name | Specifies the parameter name.
Declare Final | Declares the parameter final.
Replace All Occurrences | Replaces all the found occurrences with the references to the new parameter.
Generate Javadoc for this method | Creates Javadoc for the method.
Code Generation | Provides the following code generation options to use:
Update Existing Method | Adds a new parameter to an existing method if it is possible to change all the existing method calls.
Create new Method and Delegate from Existing Method | Defines a new parameter in a new, overloading method. Existing method calls are not changed.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.