org.jfree.ui
Class FontChooserPanel
JPanel
org.jfree.ui.FontChooserPanel
A panel for choosing a font from the available system fonts - still a bit of a hack at the
moment, but good enough for demonstration applications.
static String[] | SIZES - The font sizes that can be selected.
|
protected static ResourceBundle | localizationResources - The resourceBundle for the localization.
|
FontChooserPanel(Font font) - Standard constructor - builds a FontChooserPanel initialised with the specified font.
|
SIZES
public static final String[] SIZES
The font sizes that can be selected.
localizationResources
protected static ResourceBundle localizationResources
The resourceBundle for the localization.
FontChooserPanel
public FontChooserPanel(Font font)
Standard constructor - builds a FontChooserPanel initialised with the specified font.
font
- the initial font to display.
getSelectedFont
public Font getSelectedFont()
Returns a Font object representing the selection in the panel.
setSelectedFont
public void setSelectedFont(Font font)
Initializes the contents of the dialog from the given font
object.
font
- the font from which to read the properties.