Creating a top-level interface
You can create interfaces that are not enclosed in other types.
- Open the New Java Interface wizard.
- 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.
- 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.
- Clear the Enclosing type check box.
- In the Name field, type a name for the new interface.
- Select the public or default access modifier using the Modifiers radio buttons.
- Click the Add button to add interfaces for the new interface to extend.
- Click Finish.
Creating a new Java interface
Creating a nested interface
Creating a new interface in a compilation unit
Renaming a class or interface
New Java Interface wizard
Java Toolbar actions
Package Explorer