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 ResourceBundlelocalizationResources
The resourceBundle for the localization.
Constructor Summary
FontDisplayField(Font font)
Standard constructor - builds a FontDescriptionField initialised with the specified font.
Method Summary
FontgetDisplayFont()
Returns the current font.
voidsetDisplayFont(Font font)
Sets the font.

Field Detail

localizationResources

protected static final ResourceBundle localizationResources
The resourceBundle for the localization.

Constructor Detail

FontDisplayField

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

Parameters: font the font.

Method Detail

getDisplayFont

public Font getDisplayFont()
Returns the current font.

Returns: the font.

setDisplayFont

public void setDisplayFont(Font font)
Sets the font.

Parameters: font the font.