content.insertString(offs, str);
if (text == null || text.length() == 0) return;  DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), DocumentEvent.EventType.INSERT); content.insertString(offset, text); insertUpdate(event, attributes); fireInsertUpdate(event);
    public void insertString(int offs, String str, AttributeSet a)    throws BadLocationException    {	    content.insertString(offs, str);	    }