protected void appendString(final String text){
  final HTMLDocument doc=(HTMLDocument)textPane.getDocument();
  try {
    final Element root=doc.getParagraphElement(0);
    doc.insertBeforeEnd(root,text);
  }
 catch (  final BadLocationException e) {
    logger.error(e,e);
  }
catch (  final IOException e) {
    logger.error(e,e);
  }
}

protected void appendString ( final String text ) { final HTMLDocument doc = ( HTMLDocument ) textPane . getDocument ( ) ; try { final Element root = doc . getParagraphElement ( 0 ) ; doc . insertBeforeEnd ( root , text ) ; } catch ( final BadLocationException e ) { logger . error ( e , e ) ; } catch ( final IOException e ) { logger . error ( e , e ) ; } }
append html text to the end of the content . note : currently elements must be complete to be added correctly .
