All you never wanted to know

View on GitHub
:new: 2008-12-16 :wavy_dash: :up: 2008-12-29

LookAndFeel in ALL apps

To set your favorite LAF in all Java apps, you can create a file in your jre/lib1 folder with following contents:

You can also set the _JAVA_OPTIONS environment variable to the following (or just specify these parameters upon the java-call):

From now on you will see NimbusLookAndFeel in all Java applications which do not set a LAF on their own.

Available LookAndFeels as of 1.6:

  • javax.swing.plaf.basic.BasicLookAndFeel
  • javax.swing.plaf.metal.MetalLookAndFeel
  • javax.swing.plaf.multi.MultiLookAndFeel
  • javax.swing.plaf.synth.SynthLookAndFeel
  1. Windows: C:\Program Files\Java\jre1.6.0_01\lib
    Linux: /usr/lib/jvm/java-6-sun/jre/lib