The font selection sample specifies the character string font to be displayed.
The font selection sample uses the following classes:
JFGroupbox
JFFieldLong
JFSpinButton
Figure 1.31 Font selection sample
Operation method
Sample
Displays the character string with the specified font.
Name
Selecting the font type with Choice displays the font type.
Style
Selecting the font style with Choice displays the font style.
Size
Operating the spin button arrow using the mouse or keyboard and specifying the font size displays the character string with the specified font size.
Source codes
Font selection sample:"Sample Storage Destinations"/common/FontSelector.java