import javax.swing.JOptionPane; 
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
public class TestAllLookAndFeels { 

    public static void main(String args[]) throws Exception { 
		        for (UIManager.LookAndFeelInfo lookAndFeelInfo :
                UIManager.getInstalledLookAndFeels()) {
					System.out.println(lookAndFeelInfo.getClassName());
					UIManager.setLookAndFeel(lookAndFeelInfo.getClassName());
					        JOptionPane.showMessageDialog(null, "Swing apps are blurred & ugly if user " 
                + "changes Windows elements size to 125% or more."); 
				}

    } 
} 