To open the New Java Interface Wizard
The New Java Interface Wizard can create an additional Java interface. The way to open the wizard is:
- Click on the File menu and choose New > Interface
- Right-click in the Package Explorer window and select New > Interface
- In the drop-down box button on the toolbar () select ()
Before you open the Create Java Interface Wizard, it is a good idea to choose the package name that the Java interface belongs to, so that the package name field is automatically populated when the Java interface is created.
Using the New Java Interface Wizard
In the popup window of the Java Interface Wizard you can do the following:
- Confirm that the folder name (Source folder) and package name are correct
- Input Interface Name
- Click the Add button and select the interface to which the interface will be inherited
- Choose whether to generate comments automatically
- Click Finish button
View the new Java interface
In the package Explorer view we can see the new interface and we can modify the interface code through the Java editor on the right.
Eclipse Create Java Interface---Eclipse tutorial lesson 11th