Java Swing Look and Feel isAquaLookAndFeel()

Here you can find the source of isAquaLookAndFeel()

Description

MacOS Look and feel test

License

Open Source License

Return

true if using Aqua Look n' Feel

Declaration

public static boolean isAquaLookAndFeel() 

Method Source Code

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

import javax.swing.UIManager;

public class Main {
    /**/*from  w  w  w .  j a  v a 2 s  .  c o  m*/
     * MacOS Look and feel test
     * @return true if using Aqua Look n' Feel
     */
    public static boolean isAquaLookAndFeel() {
        return System.getProperty("mrj.version") != null
                && UIManager.getSystemLookAndFeelClassName().equals(
                        UIManager.getLookAndFeel().getClass().getName());
    }
}

Related

  1. initLookAndFeel(final String className)
  2. initLookAndFeelIntern(final String className)
  3. installLookAndFeel()
  4. isAqua()
  5. isAquaLookAndFeel()
  6. isAquaLookAndFeel()
  7. isDarkLAF()
  8. isDarkLnf()
  9. isDarkResultsBackground()