Java Swing 外观和自定义组件:WebLaF
WebLaf 是一个Java Swing 应用皮肤/外观(Look and Feel)和扩展的组件库。用于开发跨平台的应用。
public class UsageExample { public static void main ( String[] args ) { // You should work with UI (including installing L&F) inside Event Dispatch Thread (EDT) SwingUtilities.invokeLater ( new Runnable () { public void run () { // Install WebLaF as application L&F WebLookAndFeel.install (); // You can also do that with one of old-fashioned ways: // UIManager.setLookAndFeel ( new WebLookAndFeel () ); // UIManager.setLookAndFeel ( "com.alee.laf.WebLookAndFeel" ); // UIManager.setLookAndFeel ( WebLookAndFeel.class.getCanonicalName () ); // Create you application here using Swing components // JFrame frame = ... // Or use similar Web* components to get access to some extended features // WebFrame frame = ... } } ); } }
特性
- 简约时尚的跨平台的默认主题
- 许多有用的自定义Swing组件
- 完全可以通过设置,绘制和自定义外观风格
- 语言设置,热键,工具提示和其他自定义管理
- Various Swing and general utilities for many possible cases
- Full support for RTL components orientation
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!