I just read “Swing Hacks” and find it is that easy to enable anti-aliased since JDK 5. Just add a one-line code listed below at the very beginning of your whole application
System.setProperty("swing.aatext", "true");
That’s all
-- EOF --
除非注明(如“转载”、“[zz]”等),本博文章皆为原创内容,转载时请注明: 「转载自程序员的信仰©」
本文链接地址:How To Enable Anti-Aliased Globally Since JDK 5
Today on history:
【2020】Don't Cry for Me Argentina
发表回复