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