Renaming Packages in Java NetBeans Project
To rename a package in the NetBeans Project, follow steps:
1 ) In the Projects window, expand your project.
2 ) Expand the Source Packages node.
3 ) Right-click the package and select Refactor > Rename from the contextual menu Option.
4 ) In the Rename window, follow steps:
i ) New Name — The new package name in this field.
ii ) Apply Rename on Comments — If you want the refactoring process to rename content in the comments, select the checkbox.
5 ) To complete the refactoring process without previewing changes, Click the Refactor button.