Module jEdit

Class FontSelector

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

public class FontSelector extends JButton
A font chooser widget.
Version:
$Id: FontSelector.java 24411 2016-06-19 11:02:53Z kerik-sf $
Author:
Slava Pestov
See Also:
  • Constructor Details

    • FontSelector

      public FontSelector(Font font)
      Creates a new font selector control.
      Parameters:
      font - The font
    • FontSelector

      public FontSelector(Font font, boolean antiAlias)
      Creates a new font selector control.
      Parameters:
      font - The font
      antiAlias - Is anti-aliasing enabled?
      Since:
      jEdit 4.2pre7
  • Method Details

    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • isAntiAliasEnabled

      public boolean isAntiAliasEnabled()
    • setAntiAliasEnabled

      public void setAntiAliasEnabled(boolean antiAlias)