protected void insertNewline(){
  final Document doc=textPane.getDocument();
  try {
    doc.insertString(doc.getLength(),"\r\n",getStyle(Color.black,"normal"));
  }
 catch (  final BadLocationException e) {
    logger.error("Couldn't insert initial text.",e);
  }
}

protected void insertNewline ( ) { final Document doc = textPane . getDocument ( ) ; try { doc . insertString ( doc . getLength ( ) , "\r\n" , getStyle ( Color . black , "normal" ) ) ; } catch ( final BadLocationException e ) { logger . error ( "Couldn't insert initial text." , e ) ; } }
start a new line .
