Java Swing Look and Feel setWindowsLook()

Here you can find the source of setWindowsLook()

Description

Changes look-and-feel to Windows look

License

Open Source License

Declaration

public static void setWindowsLook() 

Method Source Code

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

import javax.swing.*;

public class Main {
    /**// w w w.ja  v  a2s .c om
     * Changes look-and-feel to Windows look
     */
    public static void setWindowsLook() {
        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        } catch (Exception e) {
            throw new RuntimeException("Change of look&feel failed.", e);
        }
    }
}

Related

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