How to change Netbeans default font size

How to change Netbeans default font size, is one of the thing you want to do, if you are a developer.The extreme small menu’s and ll are annoying for some people at least.In this post, i am going to explain How to change Netbeans default font size to your own choice.

First we have to find the netbeans configuration file, ie. netbeans.conf. In Windows you can just type and search in the file explorer.In Linux, the netbeans.conf exist mostly in the /usr/local/netbeans/etc/ directory.The directory may vary based on the Linux os.If you are installed in home directory, you can find it there.

You can simply use the locate command in Linux, to find the exact file location of that file.Open a Terminal and Just type:

locate netbeans.conf

In the configuration file, you can see the default options.Just add –fontsize 16, in the last portion.
Save and exit.Restart the IDE.

Example :

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true 
-J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true 
-J-Dsun.zip.disableMemoryMapping=true --fontsize 16"

The above method work for almost all versions.But, with some Themes like GTK+ (In Linux), it may not work.In that case, try another theme for your IDE.It should work.