Java Swing Look and Feel computeIsLafAqua()

Here you can find the source of computeIsLafAqua()

Description

Computes and answers whether an Aqua look&feel is active.

License

Open Source License

Return

true if the current look&feel is Aqua

Declaration

private static boolean computeIsLafAqua() 

Method Source Code


//package com.java2s;

import javax.swing.UIManager;

public class Main {
    /**/*  w w  w.  j  ava 2  s. co  m*/
     * Computes and answers whether an Aqua look&feel is active. This may be Apple's Aqua
     * L&f, or a sub-L&f that uses the same ID, because it doesn't substantially change the
     * look.
     *
     * @return true if the current look&feel is Aqua
     */
    private static boolean computeIsLafAqua() {
        return UIManager.getLookAndFeel().getID().equals("Aqua");
    }
}

Related

  1. applyNimbusLaF()
  2. applyStartupLookAndFeel(String desiredLafClassName)
  3. checkGTKLookAndFeel()
  4. checkThemeLiscense(LookAndFeelInfo i)
  5. defaultLookAndFeel()
  6. enableLafIfAvailable(String lafName)
  7. fixLnF()
  8. getAvailableLookAndFeels()