{
doc.insertString(0, "aaa", null);
atts.addAttribute(StyleConstants.Underline, Boolean.TRUE);
doc.insertString(3, "bbb", atts);
atts.removeAttributes(atts);
atts.addAttribute(StyleConstants.StrikeThrough, Boolean.TRUE);
doc.insertString(6, "ccc", atts);
atts.removeAttributes(atts);
atts.addAttribute(StyleConstants.Underline, Boolean.TRUE);
doc.insertString(5, "\nB", atts);
}