This is done under 13.04 with sun’s java.
This is very easy fix to the horrible fonts under Ubuntu for Netbeans.
- find netbeans.conf file. it should be under ~/<netbeans folder>/etc
- find the line that starts with:”netbeans_default_options”
- add this at the end:
--laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd
- There is a space at the beginning, don’t forget it
save the file, and start (or restart) Netbeans. Enjoy.
tested with netbeans 7.31,7.4
*** update ***
There is an option to set all system fonts using unity-tweak-tool. This tool enable to set the fonts system wide.