Example usage for com.jgoodies.looks.plastic PlasticLookAndFeel getPlasticTheme

List of usage examples for com.jgoodies.looks.plastic PlasticLookAndFeel getPlasticTheme

Introduction

In this page you can find the example usage for com.jgoodies.looks.plastic PlasticLookAndFeel getPlasticTheme.

Prototype

public static PlasticTheme getPlasticTheme() 

Source Link

Document

Lazily initializes and returns the PlasticTheme.

Usage

From source file:phex.gui.common.LookAndFeelUtils.java

License:Open Source License

/**
 * @param lafClassName/*from w w  w .java2 s . c om*/
 */
public static ThemeInfo getCurrentTheme(String lafClassName) {
    if (Options.PLASTICXP_NAME.equals(lafClassName)) {
        PlasticTheme myCurrentTheme = PlasticLookAndFeel.getPlasticTheme();
        if (myCurrentTheme == null) {
            return null;
        }
        Class<? extends PlasticTheme> clazz = myCurrentTheme.getClass();
        String name = clazz.getName();
        return new ThemeInfo(name, name);
    }
    return null;
}