Here are a few mini-tutorials showing how to use the API Support to easily construct small modules performing common tasks.
The first step for all of these tutorials is to create a module JAR. Select the template Templates | NetBeans Extensions | Modules API | Module JAR to begin. Choose some location for the module JAR file. Also create some package to hold sources and resources for the module. Click on the JAR, and from the Property Sheet under Module Properties configure basics of the module such as Code Name and Display Name.
Also in the Property Sheet under Properties, click ... on Contents. Add your package to the JAR contents list. Close the dialog and Save the module JAR. At any time, to test the module, click Execute on the JAR to rebuild and reinstall it.