clear(descriptionsTextPane.getStyledDocument());
if(issue != null) {
append(descriptionsTextPane.getStyledDocument(), "*", buttonStyle);
append(descriptionsTextPane.getStyledDocument(), "\n\n", plainStyle);
for(Iterator<Description> d = issue.getDescriptions().iterator(); d.hasNext(); ) {
Description description = d.next();
writeDescription(descriptionsTextPane.getStyledDocument(), description);
if(d.hasNext()) append(descriptionsTextPane.getStyledDocument(), "\n\n", plainStyle);
}
}
descriptionsTextPane.setCaretPosition(0);