X

Geertjan's Blog

  • January 26, 2012

Upcoming NetBeans Feature: Generate Implementing/Extending Class!

Geertjan Wielenga
Product Manager

Another upcoming NetBeans IDE feature, already in the daily builds, is this hint, which appears when you put the cursor in a class declaration:

Similarly:

When the hint is invoked, the new class, with all its required methods, is automatically generated, as a separate class (a dialog pops up letting you specify the name of the class and the package where the class should be created).

How handy these small enhancements can be!

This particular enhancement was included for 7.2 specifically because of a remark Arun Gupta made during Devoxx last year. That small discussion in a hallway resulted in this issue being highlighted and implemented:

http://netbeans.org/bugzilla/show_bug.cgi?id=49559

Just pointing this out as yet further evidence that we're really listening to users and, between balancing the various requirements coming in from various sides, are making very sure that user requests are taken extremely seriously.

Join the discussion

Comments ( 5 )
  • guest Tuesday, January 31, 2012

    Haha, it was request by me, 6+ years ago.

    Thank you, NetBeans team. Always!

    - pprun


  • johnstosh Wednesday, February 29, 2012

    Oh, this is great. This is a wonderful feature. I can really put this to good use because I have many abstract classes this year.

    Thanks!


  • Ramesh Sunday, March 11, 2012

    "Implement Abstract Class" should be "Extend Abstract Class" isn't it?


  • Jonny Wednesday, August 12, 2015

    Hi!

    I'm learning Swing, before trying JavaFX (oooooooooh:) total noob, but got the thirst. Maybe PHP after this. Maybe node.js!

    Anyway, nearly every tutorial I watch employs Eclipse, which has a nifty superclass entry (which you can add, like JPanel), to save ya typing 'extends ...' with every definition of every generation of every class...

    Does NetBeans let me create a class 'that inherits...', or do I have to keep extending and importing?

    THANKS!


  • Geertjan Wednesday, August 12, 2015

    If you have a hard time typing the characters "extends", you're going to have a really hard time creating meaningful applications, I think. Plus, heaps of tutorials on YouTube that use NetBeans, even complete courses you can find there that use NetBeans.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.