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 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!