XTextCursor cursor = text.createTextCursor() ;
text.insertString(cursor, "Paragraph 1", false) ;
text.insertControlCharacter(cursor,
ControlCharacter.PARAGRAPH_BREAK, false) ;
text.insertString(cursor, "Paragraph 2", false) ;
text.insertControlCharacter(cursor,
ControlCharacter.PARAGRAPH_BREAK, false) ;
text.insertString(cursor, "Paragraph 3", false) ;
text.insertControlCharacter(cursor,
ControlCharacter.PARAGRAPH_BREAK, false) ;