This article explains how to install and configure NetBeans for use with ImageJ development. Directions correspond to NetBeans 7.0.1, and may need adjustment for other versions.
Install and configure NetBeans
Check out ImageJ
Choose Team > Subversion > Checkout from the NetBeans menu
For the Repository URL, enter: http://code.imagej.net/svn/imagej/trunk
Click Next, then Finish
When prompted, click Open Project
Select the "ImageJ Projects" project in the tree
Right-click the "ImageJ Projects" project and choose Build
You may receive a warning about Maven when building the project. It is not required, but if you wish to eliminate it, you can install Maven from the Maven web site.
Launch the program
Expand the "ImageJ Projects" project, then "Modules"
Expand the "ImageJ POM: User Interface" module
Double-click the "ImageJ Application" project to open it
Right-click the "ImageJ Application" project and choose "Run"