Sometimes, when developing applications, a developer's first choice of a name for a package, class, or member, and so on, isn't the best choice. NetBeans allows developers to easily change the name of these objects using the Rename refactoring wizard. This wizard is clever enough to change both the name of the selected object and any references to it throughout the project's code base.
First we will need to create a new project, so please refer to the recipes in Chapter 1, Using NetBeans Projects, for creating Java projects. We will use the same project for all the refactoring recipes in this chapter. When naming the project, enter
Refactoring in the Project Name field and ensure that a main class called