English 中文(简体)
Eclipse - Create Java Interface
  • 时间:2024-09-17

Ecppse - Create Java Interface


Previous Page Next Page  

Opening the New Java Interface Wizard

The New Java Interface wizard can be used to create a new java interface. There are many ways of opening this wizard −

    Cpcking on the File menu and selecting New → Interface.

    Right cpcking in the package explorer and selecting New > Interface.

    Cpcking on the class drop down button (Java Interface Class) in the tool bar and selecting Interface (Interface Button).

Before bringing up the New Java Interface wizard, if possible, select the package in which the interface is to be created so that the wizard can automatically fill in the package name for you.

Using the New Java Interface Wizard

Once the java interface wizard comes up −

    Ensure the source folder and package are correct.

    Enter the interface name.

    Cpck on the Add button to select the extended interfaces.

    Select the Generate comments check box if you pke comments to be generated.

    Cpck on the Finish button.

Java Interface

Viewing the Newly Created Java Interface

The newly created interface should appear in the Package Explorer view and a java editor instance that allows you to modify the new interface should appear in the editor area.

Create Java Interface Advertisements