Here you can find the source of isAquaLookAndFeel()
public static boolean isAquaLookAndFeel()
//package com.java2s; /*// w w w. j a va 2s .com * Beanfabrics Framework Copyright (C) by Michael Karneim, beanfabrics.org * Use is subject to license terms. See license.txt. */ import javax.swing.UIManager; public class Main { public static boolean isAquaLookAndFeel() { return UIManager.getLookAndFeel().getID().equals("Aqua"); } }