Here you can find the source of checkThemeLiscense(LookAndFeelInfo i)
public static boolean checkThemeLiscense(LookAndFeelInfo i)
//package com.java2s; import javax.swing.UIManager.LookAndFeelInfo; public class Main { /**/*from w w w.j ava 2s . c o m*/ * A static method for blocking the Quaqua theme from working with any OS but OSX. * This theme can still be forced from the admin menu, but to do so on non-OSX operating * system would be in violation of Macintosh's artwork. */ public static boolean checkThemeLiscense(LookAndFeelInfo i) { String osName = System.getProperty("os.name").toLowerCase(); String suitableName = i.getName(); if (suitableName.startsWith("Quaqua") && !osName.startsWith("mac os x")) { return false; } return true; } }