Java Swing Look and Feel isWindows()

Here you can find the source of isWindows()

Description

is Windows

License

Open Source License

Declaration

public static boolean isWindows() 

Method Source Code

//package com.java2s;

import javax.swing.UIManager;

public class Main {
    public static boolean isWindows() {
        Object laf = UIManager.getLookAndFeel();
        if (laf.getClass()
                .getName()//from w  w  w . j  a  v  a  2  s.  c  om
                .equals("com.sun.java.swing.plaf.windows.WindowsLookAndFeel")) {
            return true;
        }
        return false;
    }
}

Related

  1. isSynth()
  2. isSystemLookAndFeel()
  3. isUnderIntelliJLaF()
  4. isUnderWindowsClassicLookAndFeel()
  5. isWebLookAndFeelInstalled()
  6. isWindowsClassicLookAndFeel()
  7. isWindowsClassicLookAndFeel()
  8. isWindowsLaF()
  9. isWindowsLookAndFeel()