.setToolTipText("The text to be displayed when starting a level");
briefingTA.setLineWrap(true);
briefingTA.setWrapStyleWord(true);
// the document filter restricts newline characters.
((AbstractDocument) briefingTA.getDocument())
.setDocumentFilter(new DocumentFilter() {
public void insertString(DocumentFilter.FilterBypass fb,
int offset, String text, AttributeSet attr)
throws BadLocationException {
fb.insertString(offset, text.replaceAll("\n", ""), attr);
}