Offensive Thinking

Internet Thoughtcrime

Java Swing Default Look and Feel

Posted: 2009-04-19

Huh, that was easier than I thought it would be. I wanted to get rid of that ugly Swing default GUI:


cat /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/swing.properties

# Swing properties
swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel

The above gives you the standard GTK look and feel, which is not too bad. Now I just need to figure out how I can make the fonts look less ugly. Adding “swing.aatext=true” to enable anti-aliasing doesn’t seem to do anything.