资源介绍
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.
- 上一篇: 论文研究-基于边界匹配的增强多权重差错掩盖方法研究.pdf
- 下一篇: 计算机视觉案例:全景分割养猪场