Example usage for com.jgoodies.looks FontSet getTitleFont

List of usage examples for com.jgoodies.looks FontSet getTitleFont

Introduction

In this page you can find the example usage for com.jgoodies.looks FontSet getTitleFont.

Prototype

FontUIResource getTitleFont();

Source Link

Document

Returns the font used for the title label in TitledBorders.

Usage

From source file:FontTest.java

License:Open Source License

private void addFontSet(StringBuffer buffer, String description, FontSet fontSet) {
    buffer.append("\n\n");
    buffer.append(description);//from  w  w  w .j  a  va2  s.c  o m
    if (fontSet == null) {
        buffer.append("\n  n/a");
        return;
    }
    buffer.append("\n    controlFont=");
    buffer.append(encodeFont(fontSet.getControlFont()));
    buffer.append("\n    menuFont=");
    buffer.append(encodeFont(fontSet.getMenuFont()));
    buffer.append("\n    titleFont=");
    buffer.append(encodeFont(fontSet.getTitleFont()));
    buffer.append("\n    messageFont=");
    buffer.append(encodeFont(fontSet.getMessageFont()));
    buffer.append("\n    smallFont=");
    buffer.append(encodeFont(fontSet.getSmallFont()));
    buffer.append("\n    windowTitleFont=");
    buffer.append(encodeFont(fontSet.getWindowTitleFont()));
}