Creating a new Java interface
Use the New Java Interface wizard to create a new Java interface. There are a number of ways to open this wizard:
-
Select the container where you want the new class to reside.
-
From the drop-down menu on the New Java Class button in the workbench toolbar, select Interface.
or
-
Select the container where you want the new class to reside.
-
From the container's pop-up menu, select New > Interface.
or
-
Select the container where you want the new class to reside.
-
From the drop-down menu on the New button in the workbench toolbar, select Interface.
or
-
Click the New button in the workbench toolbar to open the New wizard.
-
Select Interface or Java > Interface and click Next.
or
-
Select the container where you want the new interface to reside.
-
Then, select from the menu bar File > New > Interface.
Java projects
Creating a top-level interface
Creating a nested interface
Creating a new interface in an existing compilation unit
Renaming a type
New Java Interface wizard
Java Toolbar actions
Package Explorer