Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut to create interface implementations in NetBeans

I'd like to have a shortcut to create an implementation of an interface. Example: right click on an interface file, choose "implement", insert class name. Is there something like this in NetBeans (6.8)?

like image 739
deamon Avatar asked Jan 07 '10 15:01

deamon


People also ask

Can an interface be implemented?

implements denotes defining an implementation for the methods of an interface. However interfaces have no implementation so that's not possible. However, interface is an 100% abstract class, and an abstract class can implement interfaces (100% abstract class) without implement its methods.

How do I open a Javadoc in NetBeans?

Displaying Javadoc The Javadoc for this element is displayed in a popup window. From the menu bar, select Window > IDE Tools > Javadoc Documentation to open the Javadoc window, in which the documentation is refreshed automatically for the location of your cursor.

How do I get code suggestions in NetBeans?

It is easy to enable Java hints in NetBeans. Select "Tools" from the title bar, then select "Options" from the drop-down menu. Choose the "Editor" option and then select the "Hints" tab. At this point, make sure that the "Language" drop-down is set to "Java" (other choices include PHP, JavaScript, and Ruby).


1 Answers

Use Alt + Enter and you will see the menu for implement all methods

like image 155
Abhijit Vyas Avatar answered Nov 13 '22 17:11

Abhijit Vyas