List of usage examples for com.jgoodies.common.base SystemUtils IS_OS_MAC
boolean IS_OS_MAC
To view the source code for com.jgoodies.common.base SystemUtils IS_OS_MAC.
Click Source Link
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(); } }