To remove an application from your system simply goto system-->administration-->synaptic package manager and then search for the package u want to uninstall.Then right click on the package and unmark it .Then Apply the changes.
You can also uninstall the package using commad line option.ie goto applications-->accessories-->terminal and type the following
Netbeans is a platform independent IDE for Java. But it also supports C/C++, Ruby, portals and lots of other stuffs as plug-ins. At the point of writing, version 5.5.1 is the latest stable release and can be installed by:
sudo apt-get install netbeans5.5