登录 注册
当前位置:主页 > 资源下载 > 49 > Java使用抗锯齿字体技术

Java使用抗锯齿字体技术

  • 更新:2024-05-22 20:09:44
  • 大小:43KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:Java - 后端
  • 格式:JAR

资源介绍

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.