Here you can find the source of isAquaLookAndFeel()
public static boolean isAquaLookAndFeel()
//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()); } }