You can create standalone interfaces that are not enclosed in other types.
1. |
Open the New Interface wizard. See Opening the New Interface Wizard |
2. |
If a folder is found for the current selection, that folder appears in the Folder field as the container for the new interface. Edit the 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. |
3. |
In the Package field, type or click Browse to select the package where you want the new interface to reside. Leave this field empty to indicate that you want the new interface to be created in the default package. |
4. |
Leave the Enclosing Type box unchecked. See Creating a Nested (i.e., Inner) Interface |
5. |
In the Name field, type a name for the new interface. |
6. |
Select the desired access modifier by using the Access Modifiers radio buttons.
|
7. |
Check the static box if you want the new interface to be static (only if enclosed in a type). |
8. |
Click the Add button to add interfaces for the new interface to extend. |
9. |
Click Finish when you are done. |