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

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

Introduction

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

Prototype

public static FontPolicy getFontPolicy() 

Source Link

Document

Looks up and retrieves the FontPolicy used by the JGoodies Plastic Look&Feel family.

Usage

From source file:FontTest.java

License:Open Source License

private FontSet getPlasticFontSet() {
    try {/* w w  w  .  j av  a  2s .co  m*/
        UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
        return PlasticLookAndFeel.getFontPolicy().getFontSet("Plastic", UIManager.getDefaults());
    } catch (UnsupportedLookAndFeelException e) {
        return null;
    }
}