Code Completion for Constructors, Getters/Setters, and Overrides!

All along I've been doing Alt-Insert (which invokes "Insert Code") and going to "Generate Constructor..." and "Generate Getter and Setter...".

I could have saved myself some time (i.e., several clicks in dialogs, etc), if I had realized earlier that code completion offers not only constructors but getters and setters too:

Similarly, the overrides are also in code completion. Below, I'm in a Node, hence I see the Node overrides in code completion:

Now I can just press Ctrl-Space to popup the code completion box and quickly jump to the methods I need. Then press Enter and, without having to click through any dialogs, I have generated exactly the snippets of code I need. Saves a lot of time and keeps you in the programming flow. And so clearly NetBeans IDE is even better than I had thought.


Yeah, these are really helpful unknown features, thanks for documentation :P

Posted by Martin Scharm on September 11, 2011 at 06:49 AM PDT #

Hi Geertjan

Your blog has been so knowledgeable, I have been following blog for some time now.
Could you please add a blog for making a good web based login & session management in Netbeans.

Thanks & Regards

Posted by guest on September 11, 2011 at 08:06 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« March 2015