source: ether_statistics/service/implementation/gov/noaa/pmel/swing/MRJUtil.java @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 1.4 KB
Line 
1/*
2 * $Id: MRJUtil.java,v 1.3 2003/09/15 16:48:49 dwd Exp $
3 *
4 * This software is provided by NOAA for full, free and open release.  It is
5 * understood by the recipient/user that NOAA assumes no liability for any
6 * errors contained in the code.  Although this software is released without
7 * conditions or restrictions in its use, it is expected that appropriate
8 * credit be given to its author and to the National Oceanic and Atmospheric
9 * Administration should the software be included by the recipient as an
10 * element in other product development.
11 */
12
13package gov.noaa.pmel.swing;
14
15import javax.swing.UIManager;
16
17/**
18 * Uility methods for dealing with Aqua interfaces
19 *
20 * @author Donald Denbo
21 * @version $Revision: 1.3 $, $Date: 2003/09/15 16:48:49 $
22 * @since 3.0
23 **/
24public class MRJUtil {
25
26  public MRJUtil() {
27  }
28/**
29 * MacOS Look and feel test
30 * @return true if using Aqua Look n' Feel
31 */
32  public static boolean isAquaLookAndFeel() {
33    return System.getProperty("mrj.version") != null &&
34        UIManager.getSystemLookAndFeelClassName().equals(UIManager.getLookAndFeel().getClass().getName());
35  }
36  /**
37   * MacOS Java version test
38   */
39  public static boolean fixFontMetrics() {
40    return false;
41//    String rtVer = System.getProperty("java.runtime.version");
42//    return System.getProperty("mrj.version") != null &&
43//        (rtVer.equals("1.4.1_01-39") || rtVer.equals("1.4.1_01-69.1"));
44  }
45}
Note: See TracBrowser for help on using the repository browser.