// System.out.println("Style is null.");
// }
Document doc = this.textPane.getDocument();
try {
doc.remove(0, doc.getLength());
doc.insertString(doc.getLength(), "This is what an ", defaultStyle);
doc.insertString(doc.getLength(), "annotation", this.currentStyle);
doc.insertString(doc.getLength(), " of type ", defaultStyle);
doc.insertString(doc.getLength(), this.currentTypeName, this.currentStyle);
doc.insertString(doc.getLength(), " will look like.", defaultStyle);
} catch (BadLocationException e) {