/* * @(#)TestInstalledLookAndFeels.java * * Summary: example use of Swing Look and Feel selection. Display all installed Look and Feels. * * Copyright: (c) 2009 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.6+ * * Created with: IntelliJ IDEA IDE. * * Version History: * 1.0 2009-01-01 - initial version */ package com.mindprod.example; import javax.swing.UIManager; /** * example use of Swing Look and Feel selection. Display all installed Look and Feels. * * @author Roedy Green, Canadian Mind Products * @version 1.0 2009-01-01 - initial version * @since 2009-01-01 */ public final class TestInstalledLookAndFeels { // --------------------------- main() method --------------------------- /** * TEST harness to demonstrate how you discover the installed look and feels. * * @param args not used */ public static void main( String[] args ) { // display all installed L&Fs for ( UIManager.LookAndFeelInfo info : UIManager .getInstalledLookAndFeels() ) { System.out .println( "name: " + info.getName() + " className: " + info.getClassName() ); // if wanted to use the L&F would do: // UIManager.setLookAndFeel ( info.getClassName() ); } } }