There's a couple of quirks in Netbeans which seems to be a problem with OpenJDK.
Most irritating is being unable to copy and paste to/from a browser.
Installing Oracle Java 6 seems to solve the quirks
First run this which will create a package on your computer
Then install the package
Then edit netbeans.conf to use the Oracle Java 6
gksudo gedit ~/netbeans-7.1.1/etc/netbeans.conf
And restart Netbeans