# Creating a top-level interface

You can create interfaces that are not enclosed in other types.

1. Open the New Java Interface wizard.
2. Edit the Source Folder field as needed to indicate in which folder you want the new interface to reside. You can either type a path or click the Browse button to find the folder. If a folder is found for the current selection, that folder appears in the Source Folder field as the container for the new interface.
3. In the Package field, type a name or click Browse to select the package where you want the new interface to reside. If you want the new interface to be created in the default package, leave this field empty.
4. Clear the Enclosing type checkbox.
5. In the Name field, type a name for the new interface. (Optionally, in a 5.0 project, add type parameters enclosed in < and >).
6. Select the public or default access modifier using the Modifiers radio buttons.
7. Click the Add button to add interfaces for the new interface to extend. (Optionally, in a 5.0 project, add type arguments enclosed in < and >).
8. Click Finish.

Java projects

Creating a new Java interface
Creating a nested interface
Creating a new interface in a compilation unit
Renaming a type

New Java Interface wizard
Java Toolbar actions
Package Explorer