Class FlowLabel

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

public class FlowLabel extends JTextPane
A label which word-wraps and fully justifies its text, and which reflows the text when resized.
Since:
3.1.0
Author:
Joel Uckelman
See Also:
Serialized Form
  • Constructor Details

    • FlowLabel

      public FlowLabel(String text)
      Creates a FlowLabel with the desired text and an initial width of 40em.
      Parameters:
      text - the text for the label
    • FlowLabel

      public FlowLabel(String text, int width)
      Creates a FlowLabel with the desired text and width.
      Parameters:
      text - the text for the label
      width - the initial width of the label in em
  • Method Details