Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

Use a custom look and feel (L&F)

The default look and feel bundled with Swing (called ‘Metal’) is somewhat ugly and flat-looking. Fortunately, Swing has a pluggable look and feel mechanism that allows developers to entirely replace the default appearance of UI components.

To use a custom look and feel, make sure the L&F’s JAR library is in your application’s classpath and add this in your main() method:

UIManager.setLookAndFeel(“org.your.lookandfeel.class.name”);

There are many look and feels available, some open-source and some commercial. For a complete list, see the excellent website javootoo. In my opinion, two of them really stand out from the others : JGoodies Looks (open-source) and Alloy (commercial)

 

Comments? Corrections? Contact us or Login to edit pages directly (registration is free and takes less than displaying a JLabel)
  best/use_custom_look_and_feel.txt · Last modified: 2005/02/21 22:21 by 24.203.227.23 (krakerjaak)
 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources

Sedo - Buy and Sell Domain Names and Websites project info: swingwiki.org Statistics for project swingwiki.org etracker� web controlling instead of log file analysis