
Consider the screenshot above of a standard Netbeans installation on a standard Ubuntu 10.10 distribution. Please note the following:
- The fonts of the main menu do not correspond to the rest of the system.
- Drop-down menus do not have frames (this is very noticeable from the File menu).
- The gray menu is crossed out, not grayed out.
- Keyboard shortcuts cannot be read unless you really hover over the menu.
- Editor fonts are ugly.
I am using the latest Java Runtime Environment (TM) SE Runtime Environment (build 1.6.0_25-b06), 64 bits from sun / oracle installed in / opt / ... My netbeans_jdkhome points to the correct JDK installed in / opt /, which java points to the correct java in the JDSK when I added the profile to /etc/profile.d. The system is installed on the 64-bit version of AMD Ubuntu 10.10. The Default Ambiance theme is used; switching to Clearlooks fixes some of the problems by screwing up the L&F of everything else rather than solving ...
- laf Nimbus works as expected, fonts are still unusable, not a solution, especially since I am developing applications for the NB platform, and L & F is important.
I do not have any of these problems in Fedora 13 with Netbeans 7.0.
The best I can do now is Nimbus LAF
--laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd
So my netbeans_default_options in netbeans.conf looks like this:
netbeans_default_options="-J-client -J-Xss2m -J-Xms512m -J-XX:PermSize=32m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true --laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd"
source share