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

//this SHOULD enable global anti-aliasing
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:


Works fine for Java sun-jdk and icedtea.

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