Here you can find the source of setAntiAlisingFont()
private static void setAntiAlisingFont()
//package com.java2s; public class Main { private static void setAntiAlisingFont() { // This makes font use antialiasing. //System.setProperty("awt.useSystemAAFontSettings", "on"); System.setProperty("awt.useSystemAAFontSettings", "lcd"); System.setProperty("swing.aatext", "true"); }/*from ww w .j a v a 2 s . c o m*/ }