Java Swing Look and Feel getSysDefLookandFeel()

Here you can find the source of getSysDefLookandFeel()

Description

get Sys Def Lookand Feel

License

LGPL

Declaration

public static void getSysDefLookandFeel() 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import javax.swing.UIManager;

public class Main {

    public static void getSysDefLookandFeel() {
        String lookandfeel = UIManager.getSystemLookAndFeelClassName();
        try {//  w w w  .  j  a  v  a  2s  . c om
            UIManager.setLookAndFeel(lookandfeel);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Related

  1. getLookAndFeel(String name)
  2. getLookAndFeelInfo()
  3. getLookAndFeelToSave()
  4. getNimbusLAF()
  5. getSortedInstalledLAFInfos()
  6. getSystemLAF()
  7. initLookAndFeel()
  8. initLookAndFeel()
  9. initLookAndFeel(final String className)