If you resize a TextPane to be wider, so that its paragraphs in it require fewer lines to display, it leaves behind one or more extra lines per paragraph that repeat the text. The bug is most dramatic when the resize is abrupt, such as when you maximize a window. Here's an example:
<Window title="Font change" maximized="true"
<Document xmlns="org.apache.pivot.wtk.text" >
<TextNode text="Resize the window so that these paragraphs occupy multiple lines, and then resize the window larger." />
<TextNode text="At some point each paragraph should occupy one screen line, but in fact they always occupy at least two." />
<TextNode text="The second line contains text that is repeated in the first line." />
<TextNode text="If you resize abruptly, by maximizing the window, you'll find yourself with multiple lines of repeated text that shouldn't be there." />
This example fails in the current trunk, but works correctly in 2.0.