Java Swing Look and Feel setSystemLookAndFeel()

Here you can find the source of setSystemLookAndFeel()

Description

set System Look And Feel

License

LGPL

Declaration

public static void setSystemLookAndFeel() 

Method Source Code


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

import javax.swing.*;

public class Main {
    public static void setSystemLookAndFeel() {
        try {//from   w ww  . j av a2  s .  co m
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Related

  1. setSystemLAF()
  2. setSystemLAF()
  3. setSystemLaF()
  4. setSystemLookAndFeel()
  5. setSystemLookAndFeel()
  6. setSystemLookAndFeel()
  7. setSystemLookAndFeel(Component c)
  8. setSystemLookAndFeel(Component comp, String lookAndFeelStr)
  9. setWindowsLook()