There are number of bug reports on the issue you're experiencing. You can however change the look and feel. As of writing, the following are available:
- Windows - com.sun.java.swing.plaf.windows.WindowsLookAndFeel
- Metal - javax.swing.plaf.metal.MetalLookAndFeel
- GTK - com.sun.java.swing.plaf.gtk.GTKLookAndFeel
- Nimbus - com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
- Aqua - apple.laf.AquaLookAndFeel
* <laf_name>
- <laf_class>
Changing the Look and Feel
Use the --laf <laf_class|laf_name>
start-up option.
Edit the configuration file:
sudo vi /usr/local/netbeans-{VERSION}/etc/netbeans.conf
Add custom look and feel by adding the --laf <laf_class|laf_name>
option to the netbeans_default_options
variable.
e.g. If you want Nimbus:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m
-J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true
-J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true
-J-Dsun.zip.disableMemoryMapping=true
--laf com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"
or by name e.g. if you want Metal:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m
-J-Dapple.laf.useScreenMenuBar=true
-J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true
-J-Dsun.zip.disableMemoryMapping=true
--laf Metal"
Test Look and Feel & other options by running from Terminal
Running from the terminal is easy:
$ /usr/local/netbeans-{VERSION}/bin/netbeans
Run with Metal look and feel:
$ /usr/local/netbeans-{VERSION}/bin/netbeans --laf Metal
Run with GTK look and feel:
$ /usr/local/netbeans-{VERSION}/bin/netbeans --laf GTK
Extra Credit
Run from terminal in background job; append &
$ /usr/local/netbeans-{VERSION}/bin/netbeans --laf Metal &
Create a symlink to bypass specifying the path:
$ ln -s /usr/local/netbeans-{VERSION}/bin/netbeans ~/bin/netbeans
# now you can run without specifying the path
$ netbeans
# run in background job
$ netbeans &
# run with Metal laf in background job
$ netbeans --laf Metal &
Resources