文件名称:java抗锯齿字体
文件大小:43KB
文件格式:JAR
更新时间:2016-03-20 02:33:05
wrap,anti
Wrap Look and Feel acts as a decorator for the current Look and Feel. Thus, you can choose any Look and Feel you want and wrap it with Wrap Look and Feel to enable anti-aliasing. Doing so requires a single line of code: import com.l2fprod.common.swing.plaf.wrap.Wrapper; Wrapper.wrap(); No matter which Swing Look and Feel you set, the wrap() method will handle it properly. One line of code is good, but not good enough. We'd be better off with no line of code at all. Frédéric feels the same way and provides the excellent Wrapit class you can use to install the Wrap Look and Feel at runtime: java -classpath wraplf.jar;. Wrapit WebHunter The Wrapit class contains a main() entry point that will install the Wrap Look and Feel and then call the main() entry point of the class passed as the first argument on the command line. This Look and Feel is a powerful tool you can use to enhance the appearance of any Java application, whether you have the source code or not.