private void resetEditorPanePosition(){
  editorPane.setCaretPosition(0);
  editorPane.setMargin(margin);
}

private void resetEditorPanePosition ( ) { editorPane . setCaretPosition ( 0 ) ; editorPane . setMargin ( margin ) ; }
reset the position of the caret , when the expression lost its focus
