You can use the packagenames parameter for this. Syntax:
javadoc [ options ] [ packagenames ] [ sourcefilenames ] [ -subpackages pkg1:pkg2:... ] [ @argfiles ]
Documentation :
packagenames - A series of package names separated by spaces, for example java.lang java.lang.reflect java.awt. You must specify each package that you want to document separately. Wildcards are not allowed; the use of packaging for recursion. The Javadoc tool uses -sourcepath to search for these package names. See Example - Documenting One or More Packages.
You can apply these parameters to [Right Click on Project]> Properties> Build> Documenting, you can provide additional parameters, but when I need it, as you need now, I just did it manually (at the command line), I came to I conclude that netbeans provides the source package as a javadoc parameter.
source share