ntColor);         style.addAttribute(StyleConstants.FontFamily, family);         style.addAttribute(StyleConstants.FontSize, fontSize);         style.addAttribute(StyleConstants.Bold, isBold);         style.addAttribute(StyleConstants.Italic, isItalic);         style.addAttribute(StyleConstants.Underline, isUnderlined);          this.getTextPane().replaceSelection("");          try {             this.getTextPane().getStyledDocument().insertString(selectionEnd - text.length(), text, style);         } catch (BadLocationException ex) {          }     