Java Swing Look and Feel setSystemLookAndFeel(Component comp, String lookAndFeelStr)

Here you can find the source of setSystemLookAndFeel(Component comp, String lookAndFeelStr)

Description

set System Look And Feel

License

Open Source License

Declaration

public static void setSystemLookAndFeel(Component comp, String lookAndFeelStr) 

Method Source Code


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

import java.awt.Component;

import javax.swing.SwingUtilities;
import javax.swing.UIManager;

public class Main {
    public static void setSystemLookAndFeel(Component comp, String lookAndFeelStr) {
        try {//from   w w w  .j  av  a2  s.c o  m
            UIManager.setLookAndFeel(lookAndFeelStr);
            SwingUtilities.updateComponentTreeUI(comp);
        } catch (Exception e) {
            return;
        }
    }
}

Related

  1. setSystemLookAndFeel()
  2. setSystemLookAndFeel()
  3. setSystemLookAndFeel()
  4. setSystemLookAndFeel()
  5. setSystemLookAndFeel(Component c)
  6. setWindowsLook()
  7. setWindowsLookAndFeel()
  8. setWindowsLookLike(Window window)
  9. supportsDarkLookAndFeel()