Class FontResizingLabel

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

public class FontResizingLabel extends JLabel
A JLabel which automatically resize its font to fit the available width.

From Stackoverflow.

See Also:
  • Field Details

  • Constructor Details

    • FontResizingLabel

      public FontResizingLabel(String text)
  • Method Details

    • paintComponent

      public void paintComponent(Graphics g)