Friday, 12 December 2008

Making Netbeans (text) look a little better on Mac OS X


The defaults in Netbeans are pretty decent, but here are a few changes I like to make. You should create a new profile in Preferences -> Fonts & Colors, to be able to go back to the defaults easily.

The first change I've made is change the default font to Monospace 13. To make fonts look better, switch to the Apple's Quartz rendering engine. To do this add the following
-J-Dapple.awt.graphics.UseQuartz=true

to the netbeans_default_options in the netbeans.conf file. Which can be found at

/Applications/NetBeans/NetBeans 6.5.app/Contents/Resources/NetBeans/etc/netbeans.conf

Textmate also uses bold face for keywords, this is something I really like, and is another change I've made. I've also set the application font to 11, this can be done with
 --fontsize 11 

2 comments:

  1. Thanks so much for your tip on the Quartz font rendering! I really liked the features in NetBeans but wasn't thrilled with how it looked, at least compared to TextMate.

    Being able to bring the font rendering of NetBeans in line with the native Mac apps goes a long way!

    ReplyDelete
  2. Wow! Thanks a lot for this trick! I use Netbeans (as I prefer it over XCode due to better code completion for C++ etc.), but the font rendering issue was quite an annoyance. This completely solves it and is definitely an improvement for Netbeans on the Mac.

    ReplyDelete