Java Swing Look and Feel setWindowsLookAndFeel()

Here you can find the source of setWindowsLookAndFeel()

Description

Set look and feel of windows

License

Open Source License

Declaration

public static boolean setWindowsLookAndFeel() 

Method Source Code

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

import javax.swing.UIManager;

public class Main {
    public static final String LOOK_AND_FEEL_WINDOWS = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";

    /**//w  ww.  j a  va  2 s.c  om
     * Set look and feel of windows
     * 
     * @return
     */
    public static boolean setWindowsLookAndFeel() {
        try {
            UIManager.setLookAndFeel(LOOK_AND_FEEL_WINDOWS);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}

Related

  1. setSystemLookAndFeel()
  2. setSystemLookAndFeel()
  3. setSystemLookAndFeel(Component c)
  4. setSystemLookAndFeel(Component comp, String lookAndFeelStr)
  5. setWindowsLook()
  6. setWindowsLookLike(Window window)
  7. supportsDarkLookAndFeel()
  8. trySetNimbusLookAndFeel()
  9. tryToSetSystemLookAndFeel()