(think)

An online novel about the Source, the Force, the real life and everything in between...

How to Enable Font Anti-aliasing in a Java Swing App

If you have access to the source, you can do this in the main method:

1
2
3
// enable anti-aliasing
System.setProperty("awt.useSystemAAFontSettings","on");
System.setProperty("swing.aatext", "true");

Alternatively (and if you do not have access to the source, or if you find this easier) you can simply pass the system properties above to the JVM by adding these options to the command line:

1
-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true