Changing Processing’s Look and Feel

processing-lnf-metal

The Java Look and Feel that Processing uses by default on Linux can get a bit wonky. Depending on the GTK theme you are using, menubars can actually become unusable!

processing-menubar-adwaita-x-dark
Where’s the menu?

You can change the Look and Feel to something that works by editing the file:

/home/USERNAME/.processing/preferences.txt

Be sure that Processing is not running when you do this. To use the standard Swing Metal Look and Feel, change the lines that read:

editor.laf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
editor.laf.linux=com.sun.java.swing.plaf.gtk.GTKLookAndFeel

to:

editor.laf=javax.swing.plaf.metal.MetalLookAndFeel
editor.laf.linux=javax.swing.plaf.metal.MetalLookAndFeel
processing-menubar-lnf-metal
Metalized menubar

Metal may not be pretty, but it seems to be pretty robust!

Note that because Processing uses its own JRE, it will ignore LnF and other settings you may have configured for your default JRE.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.