In the Netbeans installation directory of Ubuntu9.04, there is a etc/netbeans. conf file, open it with a text editor, on line 6th you can find such code: netbeans_default_options = "-J-client-J-Xverify: none-J-Xss2m-J-Xms32m-J-XX: PermSize = 32m-J-XX: maxPermSize = 200 m-
There is an etc/Netbeans. conf file in the netbeans installation directory of Ubuntu 9.04. Open it in a text editor. You can find this code in line 6th:
Netbeans_default_options = "-J-client-J-Xverify: none-J-Xss2m-J-Xms32m-J-XX: PermSize = 32 m-J-XX: maxPermSize = 200 m-J-Dapple.laf.useScreenMenuBar = true-J-Dsun.java2d.noddraw = true-J-Dapple.laf.useScreenMenuBar = true" |
Add the following option to the double quotation marks:
-J-Dawt.useSystemAAFontSettings = on |
Note that you need to keep a space with the preceding characters. The last line is like this:
Netbeans_default_options = "-J-client-J-Xverify: none-J-Xss2m-J-Xms32m-J-XX: PermSize = 32 m-J-XX: maxPermSize = 200 m-J-Dapple.laf.useScreenMenuBar = true-J-Dsun.java2d.noddraw = true-J-Dapple.laf.useScreenMenuBar = true-J-Dawt.useSystemAAFontSettings = on" |
Save and restart Netbeans. The font is turned on and the edges are smooth.