Module platform

Class FontDisplayField

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants

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.
See Also:
  • 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.