Example usage for com.jgoodies.common.base SystemUtils IS_OS_MAC

List of usage examples for com.jgoodies.common.base SystemUtils IS_OS_MAC

Introduction

In this page you can find the example usage for com.jgoodies.common.base SystemUtils IS_OS_MAC.

Prototype

boolean IS_OS_MAC

To view the source code for com.jgoodies.common.base SystemUtils IS_OS_MAC.

Click Source Link

Document

True if this is the Mac OS.

Usage

From source file:de.htwk_leipzig.naoteam.motion.editor.gui.MainApplication.java

License:Open Source License

/**
 * Initialize the Look'n'Feel for the Application
 *//*w w  w .j ava2s  .  c om*/
protected void initializeLookAndFeel() {
    try {
        if (SystemUtils.IS_OS_WINDOWS) {
            UIManager.setLookAndFeel("com.jgoodies.looks.windows.WindowsLookAndFeel");
        } else if (SystemUtils.IS_OS_MAC) {
            // do nothing, use the Mac Aqua L&f
        } else {
            UIManager.setLookAndFeel("org.pushingpixels.substance.api.skin.SubstanceModerateLookAndFeel");
        }
    } catch (final Exception e) {
        // Likely the Looks library is not in the class path; ignore.
        System.out.println(e.getMessage());
        e.printStackTrace();
    }
}