e42.uk Circle Device

 

Quick Reference

Java Swing Anti-aliasing

The title here is a little misleading as fonts are handled completely by AWT (the Abstract Windowing Toolkit) but never the less it has effect in Swing

Obviously this is easy in your application... Have a look at this StackOverflow Question

http://stackoverflow.com/questions/1202040/specify-antialias-property-in-the-command-line

//this SHOULD enable global anti-aliasing
System.setProperty("awt.useSystemAAFontSettings","on");
System.setProperty("swing.aatext", "true");

From what I understand swing.aatext is an old configuration option and the awt.useSystemAAFontSettings is used for modern JVMs

or from the command line:

_JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"

Works fine for Java sun-jdk and icedtea.

Quick Links: Techie Stuff | General | Personal | Quick Reference