org.jfree.ui

Class FontDisplayField


public class FontDisplayField
extends JTextField

A field for displaying a font selection. The display field itself is read-only, to the developer must provide another mechanism to allow the user to change the font.
Author:
David Gilbert

Field Summary

protected static ResourceBundle
localizationResources
The resourceBundle for the localization.

Constructor Summary

FontDisplayField(Font font)
Standard constructor - builds a FontDescriptionField initialised with the specified font.

Method Summary

Font
getDisplayFont()
Returns the current font.
void
setDisplayFont(Font font)
Sets the font.

Field Details

localizationResources

protected static final ResourceBundle localizationResources
The resourceBundle for the localization.

Constructor Details

FontDisplayField

public FontDisplayField(Font font)
Standard constructor - builds a FontDescriptionField initialised with the specified font.
Parameters:
font - the font.

Method Details

getDisplayFont

public Font getDisplayFont()
Returns the current font.
Returns:
the font.

setDisplayFont

public void setDisplayFont(Font font)
Sets the font.
Parameters:
font - the font.