Java Swing Look and Feel setSystemLAF()

Here you can find the source of setSystemLAF()

Description

set System LAF

License

Open Source License

Declaration

public static void setSystemLAF() 

Method Source Code


//package com.java2s;
import javax.swing.*;

public class Main {
    public static void setSystemLAF() {
        try {//w w  w  . ja v a2s  .  c  o  m
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (UnsupportedLookAndFeelException e) {
            e.printStackTrace();
        }
    }
}

Related

  1. setNativeLookAndFeel()
  2. setNiceSwingLookAndFeel()
  3. setNimbusLookAndFeel()
  4. setNimbusLookAndFeel()
  5. setSOMToolboxLookAndFeel()
  6. setSystemLAF()
  7. setSystemLaF()
  8. setSystemLookAndFeel()
  9. setSystemLookAndFeel()