Netbeans is an IDE that I use to develop Java softwares but, if you have already launched this software on Linux you may have noticed that the font rendering and the global UI aren’t that good, and it is not comfortable to work in an environment like that.
I am talking about the ugly Swing’s default theme and more especially the lack of a decent font rendering. Fortunately, you can fix those issues with options. You have to passed those arguments when you are launching Netbeans.
First of all, we will see the options needed to fix the fonts:
netbeans -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on
If you try it now, I bet you will like the fonts, it is much better. Second of all, the GUI well I should called it the Look & Feel of the software. We will change the Swing L&F to your current GTK L&F:
netbeans --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel
It is important to know that you should put those options in the netbeans.conf file which contains a variable with all the options netbeans should load on startup. It depends on the installation folder of netbeans but in my case the location of this file is /usr/share/netbeans/etc/netbeans.conf. Edit this file and add the options to the netbeans_default_option variable. It should looks like that:
netbeans_default_options="-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings= on --laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel"