NetBeans 7.0.1 was re-added years ago and can be installed as per usual:
sudo apt-get install netbeans
Although it hasn't been updated since and feels very dated when compared to downloading and installing the current nightly or stable version. If it's a new installation of Ubuntu, the easier way to satisfy NetBeans' Java-dependencies would be getting the Java SE and NetBeans Cobundle.
Unfortunately, only the apt
installation will keep everything updated but, I find myself following the Ubuntu release cycle enough that binary installations of NetBeans never feel old.