Java Swing Look and Feel setLookAndFeel(String laf)

Here you can find the source of setLookAndFeel(String laf)

Description

set Look And Feel

License

Open Source License

Declaration

public static void setLookAndFeel(String laf) 

Method Source Code

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

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class Main {
    public static void setLookAndFeel(String laf) {
        try {//w  ww.j  av  a 2s. c o m
            UIManager.setLookAndFeel(laf);
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException
                | UnsupportedLookAndFeelException e) {
            e.printStackTrace();
        }
    }
}

Related

  1. setLookAndFeel()
  2. setLookAndFeel()
  3. setLookAndFeel(Component comp)
  4. setLookAndFeel(Component comp, LookAndFeel lf)
  5. setLookAndFeel(final Class lookAndFeel)
  6. setLookAndFeel(String lafName)
  7. setLookAndFeel(String look)
  8. setLookAndFeel(String lookAndFeelClass)
  9. setLookAndFeelByName(final String lookAndFeel)