Here you can find the source of computeIsLafAqua()
private static boolean computeIsLafAqua()
//package com.java2s; import javax.swing.UIManager; public class Main { /**/* w w w. j ava 2 s. co m*/ * Computes and answers whether an Aqua look&feel is active. This may be Apple's Aqua * L&f, or a sub-L&f that uses the same ID, because it doesn't substantially change the * look. * * @return true if the current look&feel is Aqua */ private static boolean computeIsLafAqua() { return UIManager.getLookAndFeel().getID().equals("Aqua"); } }