Which branch of Debian are you using (Stable, Testing, Sid) ? If you're using Testing or Sid, simply using apt to download the "netbeans-platform" or "netbeans-ide" packages will pull in dependencies etc. for you.
To get them using apt use "apt-get install netbeans-platform" or "apt-get install netbeans-ide" - as root, or with a sudo added to the beginning.
If you're using Stable (if you're not sure, you're likely using Stable) you can still use apt to install the netbeans packages, but be warned, mixing packages from branches (which this next bit will do) *can* cause problems. So, assuming you accept that, you can install it with:
"apt-get -t testing install netbeans-ide" or "apt-get -t testing netbeans-platform" (as root, or with a sudo added to the beginning).