Java Swing Look and Feel lookAndFeelDefault(String style)

Here you can find the source of lookAndFeelDefault(String style)

Description

look And Feel Default

License

Open Source License

Declaration

public static void lookAndFeelDefault(String style) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;

public class Main {
    public static void lookAndFeelDefault(String style) {
        try {/*from  ww w .  j a  va  2s  . c om*/
            for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                if (style.equals(info.getName())) {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (Exception e) {
            // If Nimbus is not available, you can set the GUI to another look and feel.
        }
    }
}

Related

  1. isWindowsXPLookAndFeel()
  2. isWinLAF()
  3. isWinLAF()
  4. isXP()
  5. listLookAndFeels()
  6. lookLikeSystem()
  7. matchLnf(LookAndFeel lookAndFeel, UIManager.LookAndFeelInfo lookAndFeelInfo)
  8. metalLookAndFeel()
  9. nativeLook()