# Converting an anonymous inner class to a nested class

To convert an anonymous inner class to a nested class:

- In a Java editor, position the care inside the anonymous class
- Do one of the following:
  - From the menu bar, select Refactor > Convert Anonymous Class to Nested or
  - From the editor's pop-up menu, select Refactor > Convert Anonymous Class to Nested

Refactoring actions
Refactoring dialogs
Refactoring preferences