Java Swing Look and Feel fixLnF()

Here you can find the source of fixLnF()

Description

fix Ln F

License

Open Source License

Declaration

public static void fixLnF() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.swing.*;

public class Main {
    public static void fixLnF() {
        final Object osName = System.getProperties().get("os.name");
        if (!osName.equals("Mac OS X")) {
            loadPlasticLnF();/*from   w  ww  . ja va2  s . com*/
        }

    }

    public static void loadPlasticLnF() {
        try {
            UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel");
        } catch (Exception e) {

        }
    }
}

Related

  1. checkGTKLookAndFeel()
  2. checkThemeLiscense(LookAndFeelInfo i)
  3. computeIsLafAqua()
  4. defaultLookAndFeel()
  5. enableLafIfAvailable(String lafName)
  6. getAvailableLookAndFeels()
  7. getAvailableLookAndFeels()
  8. getInstalledLookAndFeels()
  9. getLAF(int lafNumber)