O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a NetBeans module

The NetBeans IDE has been developed in a fashion that allows third-party developers to write additional plugins (sometimes called modules), which can provide additional functionality for the NetBeans IDE. Once written, these plugins are usually published at the NetBeans Plugin Center, where they can be discovered by other NetBeans users.

In this recipe, we'll show how to write a NetBeans Code Generator plugin that will allow us to easily add the basics of a JUnit test into a Java class. The plugin will be invoked by pressing Alt + Insert for the code generation option within NetBeans.

Getting ready

No special steps are required before completing this recipe.

Any version of NetBeans (Java SE, Java EE, or the All bundle) can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required