Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import javax.swing.UIManager;

public class Main {
    /**
     * 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());
    }
}