# Rename Class Dialog Box

Use to specify options for the Rename refactoring command. Use this command to give a new name to a Java class and have references to that class updated with the new name throughout your code. You can rename classes, methods, and fields.

Element | Description
--- | ---
New Name | Displays the name of the Java class to be renamed. Specify the new name of the class by modifying this field.
Apply Rename on Comments | Applies the rename on all occurrences of the name in comments.
Rename Getters and Setters | Applies a new name to getters and setters of a property.
Rename Test Class | Applies a new name to a corresponding test class.

Related Topics

Developing Applications with NetBeans IDE,

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