Java Swing Look and Feel isMacLookAndFeel()

Here you can find the source of isMacLookAndFeel()

Description

is Mac Look And Feel

License

LGPL

Declaration

public static boolean isMacLookAndFeel() 

Method Source Code

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

import javax.swing.UIManager;

public class Main {
    public static boolean isMacLookAndFeel() {
        String name = UIManager.getLookAndFeel().getClass().getName();
        return name.startsWith("com.apple");
    }//  w w  w.  j av  a  2  s  .c  o m
}

Related

  1. isJoxyActive()
  2. isLookAndFeel(String name)
  3. isLookAndFeelNative()
  4. isMacAquaLookAndFeel()
  5. isMacLookAndFeel()
  6. isMacOSXLookAndFeel()
  7. isMetalLookAndFeel()
  8. isMotif()
  9. isMotiflLnF()