title: Reflowing label widget for Swing
body: <p>Is there a widget for Swing that behaves like a <code>JLabel</code>, that automatically reflows the text if its dimensions have changed? For example:</p>
  
  <pre>
  Large horizontal space available:
  +--------------+
  | Foo bar baz  |
  +--------------+
  
  Small horizontal space available:
  +---------+
  | Foo bar |
  | baz     |
  +---------+
  </pre>
  
  <p>I am currently using <code>JEditorPane</code> with <code>setContentType("text/html")</code> and HTML content. This works, but it does not use the System's default label font for displaying the text. Also, I would rather not put HTML tags into my text - at best, <code>\n</code> characters would be transformed into line breaks and everything else would be displayed as text.</p>