if (key == StyleConstants.Underline
|| key == StyleConstants.StrikeThrough) {
TextDecoration td =
(TextDecoration)old.getAttribute(Attribute.TEXT_DECORATION);
td = (TextDecoration)td.clone();
if (key == StyleConstants.Underline && td.isUnderline()) {
td.setUnderline(false);
}
if (key == StyleConstants.StrikeThrough && td.isLineThrough()) {
td.setLineThrough(false);