Class FontChooser

    • Field Detail

      • m_ButtonOK

        protected BaseButton m_ButtonOK
        the OK button.
      • m_ButtonCancel

        protected BaseButton m_ButtonCancel
        the Cancel button.
      • m_Current

        protected Font m_Current
        The font the user has chosen.
    • Constructor Detail

      • FontChooser

        public FontChooser​(Frame owner)
        Construct a FontChooser.
        Parameters:
        owner - the parent frame
      • FontChooser

        public FontChooser​(Dialog owner)
        Construct a FontChooser.
        Parameters:
        owner - the parent dialog
    • Method Detail

      • finishInit

        protected void finishInit()
        finishes the initialization, by setting size/location.
        Overrides:
        finishInit in class BaseDialog
      • setCurrent

        public void setCurrent​(Font value)
        Sets the selected font. If null is provided, the default font/size will be used.
        Parameters:
        value - the font, can be null
      • getCurrent

        public Font getCurrent()
        Retrieve the selected font, or null.
        Returns:
        the selected font
      • main

        public static void main​(String[] args)
        Simple main program to start it running.
        Parameters:
        args - ignored