Java Swing 外观和自定义组件:WebLaF

jopen 10年前

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 = ...              }          } );      }  }

Preview

特性

  • 简约时尚的跨平台的默认主题
  • 许多有用的自定义Swing组件
  • 完全可以通过设置,绘制和自定义外观风格
  • 语言设置,热键,工具提示和其他自定义管理
  • Various Swing and general utilities for many possible cases
  • Full support for RTL components orientation

项目主页:http://www.open-open.com/lib/view/home/1410423481258